Bug #64076 [Ver->Csd]: imap_sort() should to return FALSE on failure

From: Date: Tue, 13 Oct 2020 17:42:37 +0000
Subject: Bug #64076 [Ver->Csd]: imap_sort() should to return FALSE on failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229601@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: Verified +Status: Closed Type: Bug Package: IMAP related PHP Version: 5.3.21 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=db8bf0a9e07f906ad5d771142e5873688aff8033 Log: Fix #64076: imap_sort() does not return FALSE on failure Previous Comments: ------------------------------------------------------------------------ [2020-10-13 15:18:00] cmb@php.net 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 ------------------------------------------------------------------------ [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 (#229601) next »