aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
Diffstat (limited to 'include/dba')
-rwxr-xr-xinclude/dba/dba_pdo.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dba/dba_pdo.php b/include/dba/dba_pdo.php
index 8ba0adb99..9f8deaf17 100755
--- a/include/dba/dba_pdo.php
+++ b/include/dba/dba_pdo.php
@@ -137,8 +137,9 @@ class dba_pdo extends dba_driver {
// The initial backslash inserted by escapebin above will have been stripped
// by the postgres server, leaving us with '\x{hexdigits}'
+ // The PDO driver returns bytea fields as streams, so fetch the content with fgets
- return hex2bin(substr($str,2));
+ return hex2bin(substr(fgets($str),2));
}
else {
return $str;