Bug #52473 [Fbk->Nab]: Large Objects not read
| From: | yohgaki@php.net | Date: | Sat, 31 Mar 2012 10:37:32 +0000 |
| Subject: | Bug #52473 [Fbk->Nab]: Large Objects not read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169093@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52473&edit=1
ID: 52473
Updated by: yohgaki@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] yohgaki@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