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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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.


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 00:01:30 2024 UTC