issue #606, postgres binary data handling under PDO and HHVM when passed null
This commit is contained in:
parent
abf1d7da23
commit
83a4999dbe
@ -133,7 +133,7 @@ class dba_pdo extends dba_driver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function unescapebin($str) {
|
function unescapebin($str) {
|
||||||
if($this->driver_dbtype === 'pgsql') {
|
if($this->driver_dbtype === 'pgsql' && (! is_null($str))) {
|
||||||
$x = '';
|
$x = '';
|
||||||
while(! feof($str)) {
|
while(! feof($str)) {
|
||||||
$x .= fread($str,8192);
|
$x .= fread($str,8192);
|
||||||
|
Reference in New Issue
Block a user