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

 ID:                 52473
 Updated by:         yohg...@php.net
 Reported by:        stefan dot kirchev at gmail dot com
 Summary:            Large Objects not read
-Status:             Feedback
+Status:             Not a bug
 Type:               Bug
 Package:            PostgreSQL related
 Operating System:   Linux
 PHP Version:        5.2.14
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

Got reply from owner via mail. It was permission.


Previous Comments:
------------------------------------------------------------------------
[2012-03-31 06:08:38] yohg...@php.net

Was the previous comment guess right?

------------------------------------------------------------------------
[2010-07-29 20:42:59] tommy at gildseth dot com

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.

------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=52473&edit=1

Reply via email to