php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #64076 imap_sort() should to return FALSE on failure
Submitted: 2013-01-25 19:04 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Slim at inbox dot lv Assigned:
Status: Open Package: IMAP related
PHP Version: 5.3.21 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Slim at inbox dot lv
New email:
PHP Version: OS:

 

 [2013-01-25 19:04 UTC] Slim at inbox dot lv
Description:
------------
imap_sort() accepts Search_criteria argument. When the value is unparsable, c-client  
returns error (it is accessible via imap_last_error()). In this case imap_sort() 
should to return false to flag the problem. 

Test script:
---------------
Run imap_sort() with any invalid search_criteria

Expected result:
----------------
False should be returned

Actual result:
--------------
Empty array is returned

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 08:01:24 2019 UTC