mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:35:13 +00:00
issue #606, postgres binary data handling under PDO and HHVM when passed null
This commit is contained in:
parent
abf1d7da23
commit
83a4999dbe
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class dba_pdo extends dba_driver {
|
|||
}
|
||||
|
||||
function unescapebin($str) {
|
||||
if($this->driver_dbtype === 'pgsql') {
|
||||
if($this->driver_dbtype === 'pgsql' && (! is_null($str))) {
|
||||
$x = '';
|
||||
while(! feof($str)) {
|
||||
$x .= fread($str,8192);
|
||||
|
|
Loading…
Reference in a new issue