Minixed
Minixed copied to clipboard
MINIXED php 8.3.14 usort Deprecated: usort(): Returning bool from comparison function is deprecated
Changed the following and tried to use it with Windows 10 and Wamp 3.3.7 64 bit using Php 8.3.14, have been using it previously on Windows 7 Wamp 3.2.6 32 bit using Php 7.4.26 I received this error:
Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in C:\wamp\www\addons-wamp\Minixed-master\index.php on line 101
--
1 | 0.0014 | 548000 | {main}( ) | ...\index.php:0
2 | 0.0019 | 550144 | usort( $array = [0 => ['name' => 'LICENSE', 'isdir' => FALSE, 'size' => 1071, 'time' => 1591346360], 1 => ['name' => 'Readme.txt', 'isdir' => FALSE, 'size' => 2828, 'time' => 1591346360]], $callback = 'sortByName' )
Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in C:\wamp\www\addons-wamp\Minixed-master\index.php on line 101
Call Stack
# Time Memory Function Location
1 0.0014 548000 {main}( ) ...\index.php:0
2 0.0019 550144 [usort](http://www.php.net/function.usort)( $array = [0 => ['name' => 'LICENSE', 'isdir' => FALSE, 'size' => 1071, 'time' => 1591346360], 1 => ['name' => 'Readme.txt', 'isdir' => FALSE, 'size' => 2828, 'time' => 1591346360]], $callback = 'sortByName' )
Can you give me a clue as to how to fix? Thanks in advance.
This should have already been fixed in 1c8090e. Are you using the latest version? If you're not sure, paste your code around lines 100-120, where it says // Sort it, and I'll take a look.