PHP :: Bug #48060 :: pdo_pgsql

Bug #48060 pdo_pgsql - large objects are returned as empty
Submitted: 2009-04-23 13:17 UTC Modified: 2009-04-23 13:26 UTC
From: mbeccati@php.net Assigned: mbeccati (profile)
Status: Closed Package: PDO related
PHP Version: 5.3CVS-2009-04-23 (CVS) OS: *
Private report: No CVE-ID: None

 [2009-04-23 13:17 UTC] mbeccati@php.net

Description:
------------
Bug isn't always reproducible. It might depend on various factors like e.g. memory addresses in use (to me it happens when pdo_oci support is compiled in).

Explanation: the fix for bug #46274 is not properly working under some circumstances. The get_col function might be returning a (php_stream *) which is treated like a string by the empty string check, leading to inconsistent result (empty LOB) and a memory leak.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2009-04-23 13:26 UTC] mbeccati@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.