php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46902 IMAP functions return NULL in PHP53, false in PHP52
Submitted: 2008-12-18 14:39 UTC Modified: 2008-12-18 14:40 UTC
From: zoe@php.net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.3.0alpha3 OS: Any
Private report: No CVE-ID: None
 [2008-12-18 14:39 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-18 14:40 UTC] jani@php.net
New paremeter parsing api does that. And IIRC, that's defacto standard now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC