|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-16 08:17 UTC] hosiplan at gmail dot com
[2012-04-16 08:17 UTC] hosiplan at gmail dot com
-PHP Version: 5.3.10
+PHP Version: 5.4.1
[2012-04-26 13:44 UTC] arjen at react dot com
[2013-01-31 14:17 UTC] christopher dot loerken at bytro dot com
[2013-01-31 14:42 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2013-01-31 14:42 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 21:00:01 2025 UTC |
Description: ------------ When I call a function debug_backtrace() in usort() callback, it triggers unrelated warning. When i var_dump() it's result, it's OK. Verified on my mashine $ php -v PHP 5.3.11-dev (cli) (built: Mar 1 2012 16:31:39) and on my friend's mashine with 5.3.5 Test script: --------------- <?php error_reporting(E_ALL | E_STRICT); $versions = array('1', '2'); usort($versions, function ($me, $him) { debug_backtrace(FALSE); return 1; }); Expected result: ---------------- No warning Actual result: -------------- Warning: usort() [function.usort]: Array was modified by the user comparison function in /home/hosiplan/develop/testing/php/backtrace.error.php on line 18