Bug #50688 [Asn->Csd]: Using exceptions inside usort() callback function causes a warning
| From: | nikic@php.net | Date: | Wed, 06 Dec 2017 18:14:54 +0000 |
| Subject: | Bug #50688 [Asn->Csd]: Using exceptions inside usort() callback function causes a warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212975@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=50688&edit=1
ID: 50688
Updated by: nikic@php.net
Reported by: jcampbell at remindermedia dot com
Summary: Using exceptions inside usort() callback function
causes a warning
-Status: Assigned
+Status: Closed
Type: Bug
Package: Arrays related
Operating System: Fedora Core 12
PHP Version: 5.*, 6
Assigned To: stas
Block user comment: N
Private report: N
New Comment:
Closing as this is fixed in PHP 7 and PHP 5.6 is out of active support.
Previous Comments:
------------------------------------------------------------------------
[2017-03-28 00:07:52] love at sickpeople dot se
This bug should be closed as Fixed, since it's fixed in PHP 7 and 5.6 does not have active
support.
------------------------------------------------------------------------
[2016-05-27 21:01:23] albert at mediatribe dot net
A notice within the compare function will also trigger this notice. For example:
function test($a, $b) {
return strnatcmp($a['name'], $b['name']);
}
$e = array(
array(
'not-name' => 'a',
),
array(
'name' => '',
),
);
uasort($e, 'test');
(this is tested on PHP 5.3)
------------------------------------------------------------------------
[2016-01-03 14:46:18] white06tiger+PHPbug at gmail dot com
Related To: Bug #71238
------------------------------------------------------------------------
[2015-07-18 14:17:52] nikic@php.net
This has been fixed in PHP 7.
------------------------------------------------------------------------
[2013-08-19 19:04:24] m at rtin dot so
Sorry the use () isn't relevant, I forgot to remove it when simplifying my test
case
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=50688
--
Edit this bug report at https://bugs.php.net/bug.php?id=50688&edit=1