Created
April 15, 2012 12:14
-
-
Save fprochazka/2392410 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * $ php -v | |
| * PHP 5.3.11-dev (cli) (built: Mar 1 2012 16:31:39) | |
| * Copyright (c) 1997-2012 The PHP Group | |
| * Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies | |
| * with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans | |
| * | |
| * @note When you print the result of debug_backtrace() no warning occurs | |
| */ | |
| error_reporting(E_ALL | E_STRICT); | |
| $versions = array('1', '2', '3'); | |
| 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 |
Author
No jako, pravdu máš. Ale nechtělo se mi uprostřed práce kompilovat 5.4, když Nette na ni stejně není připraveno ;)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Příště by bylo vhodnější to testovat na hlavní verzi (5.4.0/5.4.1RC2) a také to vůči ní reportovat, 5.3.x už jen dožívá. :) Jinak na 5.4.1RC2 je problém stejný.