php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
33 - 12 = ?
Subscribe to this entry?

 
 [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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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
php3_pgsql_lo_readall. 

Fix committed to CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 11:01:31 2024 UTC