#46902 [NEW]: IMAP functions return NULL in PHP53, false in PHP52
| From: | zoe@php.net | Date: | Thu, 18 Dec 2008 14:39:26 +0000 |
| Subject: | #46902 [NEW]: IMAP functions return NULL in PHP53, false in PHP52 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-132146@lists.php.net to get a copy of this message | ||
From: zoe@php.net
Operating system: Any
PHP version: 5.3.0alpha3
PHP Bug Type: Scripting Engine problem
Bug description: IMAP functions return NULL in PHP53, false in PHP52
Description:
------------
The imap functions in ext/imap/php_imap.c all return NULL on failure of
zend_parse_parameters() rather than bool(false).
In PHP52 the same functions return 'false' when parameter parsing fails.
Patches here:
http://pastebin.ca/1288616
http://pastebin.ca/1288620
Reproduce code:
---------------
http://pastebin.ca/1288610
Expected result:
----------------
See expected result in test case
Actual result:
--------------
NULL in test output where bool(false) is expected
--
Edit bug report at http://bugs.php.net/?id=46902&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46902&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46902&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46902&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46902&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46902&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46902&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46902&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46902&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46902&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46902&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46902&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46902&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46902&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46902&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46902&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46902&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46902&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46902&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46902&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46902&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46902&r=mysqlcfg