Bug #68697 [PATCH]: lo_export return -1 on failure
| From: | ondrej@php.net | Date: | Tue, 30 Dec 2014 16:23:32 +0000 |
| Subject: | Bug #68697 [PATCH]: lo_export return -1 on failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189529@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68697&edit=1
ID: 68697
Patch added by: ondrej@php.net
Reported by: ondrej@php.net
Summary: lo_export return -1 on failure
Status: Open
Type: Bug
Package: *General Issues
PHP Version: 5.6Git-2014-12-30 (Git)
Block user comment: N
Private report: N
New Comment:
The following patch has been added/updated:
Patch Name: check-libpq-lo_export-return-value.patch
Revision: 1419956611
URL: https://bugs.php.net/patch-display.php?bug=68697&patch=check-libpq-lo_export-return-value.patch&revision=1419956611
Previous Comments:
------------------------------------------------------------------------
[2014-12-30 15:31:01] ondrej@php.net
Description:
------------
libpq lo_export returns -1 on failure, but PHP code doesn't check for -1, but for "!=
0"
Also affects PHP-5.4 and PHP-5.5.
Test script:
---------------
As reported in Debian BTS: bugs.debian.org/773182
Expected result:
----------------
returns FALSE on failure
Actual result:
--------------
return TRUE on failure
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68697&edit=1