Bug #68697 [NEW]: lo_export return -1 on failure

From: Date: Tue, 30 Dec 2014 15:31:01 +0000
Subject: Bug #68697 [NEW]: lo_export return -1 on failure
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189525@lists.php.net to get a copy of this message
From: ondrej Operating system: PHP version: 5.6Git-2014-12-30 (Git) Package: *General Issues Bug Type: Bug Bug description:lo_export return -1 on failure 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 bug report at https://bugs.php.net/bug.php?id=68697&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68697&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68697&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68697&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68697&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68697&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68697&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68697&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68697&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68697&r=support Expected behavior: https://bugs.php.net/fix.php?id=68697&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68697&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68697&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68697&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68697&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68697&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68697&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68697&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68697&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68697&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68697&r=mysqlcfg

« previous php.bugs (#189525) next »