Req->Bug #64076 [Opn->Ver]: imap_sort() should to return FALSE on failure
| From: | cmb@php.net | Date: | Mon, 12 Oct 2020 16:30:14 +0000 |
| Subject: | Req->Bug #64076 [Opn->Ver]: imap_sort() should to return FALSE on failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-229586@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64076&edit=1
ID: 64076
Updated by: cmb@php.net
Reported by: Slim at inbox dot lv
Summary: imap_sort() should to return FALSE on failure
-Status: Open
+Status: Verified
-Type: Feature/Change Request
+Type: Bug
Package: IMAP related
PHP Version: 5.3.21
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
That looks like a real bug to me.
Previous Comments:
------------------------------------------------------------------------
[2013-01-25 19:04:19] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64076&edit=1