#46902 [Opn->Bgs]: IMAP functions return NULL in PHP53, false in PHP52
| From: | jani@php.net | Date: | Thu, 18 Dec 2008 14:40:52 +0000 |
| Subject: | #46902 [Opn->Bgs]: IMAP functions return NULL in PHP53, false in PHP52 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-132148@lists.php.net to get a copy of this message | ||
ID: 46902
Updated by: jani@php.net
Reported By: zoe@php.net
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Any
PHP Version: 5.3.0alpha3
New Comment:
New paremeter parsing api does that. And IIRC, that's defacto standard
now.
Previous Comments:
------------------------------------------------------------------------
[2008-12-18 14:39:25] zoe@php.net
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 this bug report at http://bugs.php.net/?id=46902&edit=1