Bug #64076 [PATCH]: imap_sort() should to return FALSE on failure

From: Date: Tue, 13 Oct 2020 15:18:00 +0000
Subject: Bug #64076 [PATCH]: imap_sort() should to return FALSE on failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229599@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 Patch added by: cmb@php.net Reported by: Slim at inbox dot lv Summary: imap_sort() should to return FALSE on failure Status: Verified Type: Bug Package: IMAP related PHP Version: 5.3.21 Assigned To: cmb Block user comment: N Private report: N New Comment: The following pull request has been associated: Patch Name: Fix #64076: imap_sort() does not return FALSE on failure On GitHub: https://github.com/php/php-src/pull/6332 Patch: https://github.com/php/php-src/pull/6332.patch Previous Comments: ------------------------------------------------------------------------ [2020-10-12 16:30:14] cmb@php.net That looks like a real bug to me. ------------------------------------------------------------------------ [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

« previous php.bugs (#229599) next »