Edit report at http://bugs.php.net/bug.php?id=52473&edit=1

 ID:                 52473
 Comment by:         tommy at gildseth dot com
 Reported by:        stefan dot kirchev at gmail dot com
 Summary:            Large Objects not read
 Status:             Open
 Type:               Bug
 Package:            PostgreSQL related
 Operating System:   Linux
 PHP Version:        5.2.14
 Block user comment: N

 New Comment:

Aside from the fact that version 9.0 of PostgreSQL is still beta, you
haven't provided a complete test case that anyone can use to reproduce
your problem. You also did not say anything about which PHP or Postgres
versions you upgraded from.



All that said though, this could be related to the fact that the
behaviour of access permissions on LOB's in PostgreSQL 9 has changed
from previous versions. The change being that previously, there was no
access restrictions. My guess therefore, is that this is not a
PHP-related error.


Previous Comments:
------------------------------------------------------------------------
[2010-07-28 16:43:37] stefan dot kirchev at gmail dot com

Description:
------------
Function pg_lo_read_all returns 0 bytes read.

Database: (PostgreSQL) 9.0beta3



Test script:
---------------
...

header('Content-type: image/jpeg');



$db->begin();

$handle = pg_lo_open($link, $oid, "r");

pg_lo_read_all($handle);

$db->commit();

...

Expected result:
----------------
Problem appeared after postgres and php upgrade.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52473&edit=1

Reply via email to