|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #568 pg_loreadall does not output all of the data
Submitted: 1998-07-22 09:45 UTC Modified: 1998-07-30 19:05 UTC
From: scott at elysium dot demon dot co dot uk Assigned: jah (profile)
Status: Closed Package: PostgreSQL related
PHP Version: 3.0.2 OS: Linux 2.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: scott at elysium dot demon dot co dot uk
New email:
PHP Version: OS:


 [1998-07-22 09:45 UTC] scott at elysium dot demon dot co dot uk
We have a jpeg image stored in a Large Object field in PostgreSQL, using pg_loreadall to access this and output it to the web browser does not work correctly - an incomplete jpeg file is produced.

Using pg_loread in a loop however works fine.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-30 19:05 UTC] jah
Real fix not known. Code seems to be alright. However, something strange
is happening at least with Linuxes if compiled with gcc 2.7.x, gcc 2.8.x or
egcs 1.0.x if optimizations are turned on.

A workaround is to declare nbytes as volatile int in pgsql.c, function

Fix committed to CVS.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 01:03:14 2021 UTC