Req #45364 [Opn->Csd]: usort does not auto-load classes
Edit report at https://bugs.php.net/bug.php?id=45364&edit=1
ID: 45364
Updated by: requinix@php.net
Reported by: lindsay at marshall dot name
Summary: usort does not auto-load classes
-Status: Open
+Status: Closed
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux
PHP Version: 5.2.6
-Assigned To:
+Assigned To: requinix
Block user comment: N
Private report: N
New Comment:
Don't have 5.2 around to double-check with but this certainly does work now.
http://3v4l.org/LrLKV
Previous Comments:
------------------------------------------------------------------------
[2008-06-26 12:10:05] lindsay at marshall dot name
Description:
------------
On a call :
usort($array, array('Class', 'func'));
If Class is not loaded when usort is called it does not trigger the auto-loader.
Expected result:
----------------
The class is auto-loaded as necessary
Actual result:
--------------
The class is not loaded and the script fails
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=45364&edit=1
Thread (2 messages)