oops, fix for the fix ... /me pulls brown paperbag over his head

This commit is contained in:
Carsten Wolff 2004-03-11 17:39:05 +00:00
parent 02c1c5a545
commit 5889064b1f

View File

@ -561,6 +561,7 @@
// cache types for blob decode check in a class-member called "_byteaArray"
function _init_bytea_array()
{
unset($this->_byteaArray);
for ($i=0, $max = @pg_numfields($this->Query_ID); $i < $max; $i++)
{
if (@pg_fieldtype($this->Query_ID, $i) == 'bytea')
@ -589,7 +590,7 @@
// fix data from bytea-fields, wich are not fully supported by PHP itself
function _bytea_decode($bytea)
{ echo "I'm called because of $bytea <br>";
{
eval('$realbytea="'.str_replace(array('"','$'),array('\"','\$'),$bytea).'";');
return $realbytea;
}