note 126190 added to function.uasort
| From: | ephrey at main dot php dot net | Date: | Thu, 24 Jun 2021 10:38:26 +0000 |
| Subject: | note 126190 added to function.uasort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216542@lists.php.net to get a copy of this message | ||
Since PHP8 uasort() throws the following Exception if you are trying to return a bool type :
ErrorException: uasort(): Returning bool from comparison function is deprecated, return an integer
less than, equal to, or greater than zero
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 102.65.53.43)
----
Manual Page -- https://php.net/manual/en/function.uasort.php
Edit -- https://main.php.net/note/edit/126190
Del: integrated -- https://main.php.net/note/delete/126190/integrated
Del: useless -- https://main.php.net/note/delete/126190/useless
Del: bad code -- https://main.php.net/note/delete/126190/bad+code
Del: spam -- https://main.php.net/note/delete/126190/spam
Del: non-english -- https://main.php.net/note/delete/126190/non-english
Del: in docs -- https://main.php.net/note/delete/126190/in+docs
Del: other reasons-- https://main.php.net/note/delete/126190
Reject -- https://main.php.net/note/reject/126190
Search -- https://main.php.net/manage/user-notes.php