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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: zoe@php.net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon Apr 28 11:01:30 2025 UTC