• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Result is a resource, not a strong

#1
Regarding this code in Session_database_driver.php


Code:
            // PostgreSQL's variant of a BLOB datatype is Bytea, which is a
            // PITA to work with, so we use base64-encoded data in a TEXT
            // field instead.
            $result = ($this->_platform === 'postgre')
                ? base64_decode(rtrim($result->data))
                : $result->data;

The issue I'm having is that $result->data is a resource, rather than a string as expected.

We're using DB_driver.php to pull the results.

Any suggestions?  I'm new to PostgreSQL, so is this something that can be fixed on the DB side?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.