#40616 [Opn]: uasort implementation is not robust

From: Date: Sat, 24 Feb 2007 01:08:31 +0000
Subject: #40616 [Opn]: uasort implementation is not robust
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109454@lists.php.net to get a copy of this message
ID: 40616 User updated by: phpbugs at jessemccarthy dot net Reported By: phpbugs at jessemccarthy dot net Status: Open Bug Type: Arrays related Operating System: Linux PHP Version: 5.2.1 New Comment: This software broke the line with the URL to the short reproduce code. http://www.jessemccarthy.net/public/uasort_bug/s_reproduce_source.php Previous Comments: ------------------------------------------------------------------------ [2007-02-24 01:03:54] phpbugs at jessemccarthy dot net Well I apologize. Thanks for your feedback. Short reproduce code: http://www.jessemccarthy.net/public/uasort_bug/short_reproduce_source.php Expected result: array(3) { ["field_favorite_movies"]=> array(1) { ["title"]=> string(15) "Favorite movies" } ["monkey_wrench"]=> string(0) "" ["field_favorite_music"]=> array(1) { ["title"]=> string(14) "Favorite music" } } Actual result: array(3) { ["field_favorite_music"]=> array(1) { ["title"]=> string(14) "Favorite music" } ["monkey_wrench"]=> string(0) "" ["field_favorite_movies"]=> array(1) { ["title"]=> string(15) "Favorite movies" } } I would think that an English description of expected / actual results would be helpful rather than just raw output, but whatever works for you. I also can't help but feel that the original reproduce code made more sense, but this is the most minimal version I can create that still demonstrates anything. Thanks for your attention. ------------------------------------------------------------------------ [2007-02-23 23:36:10] tony2001@php.net >The reproduce code is too long? Yes, please remove everything not related to your problem. >The descriptions of actual and expected output are not >sufficient? Descriptions? No, descriptions are not enough, we need the results, not their descriptions. ------------------------------------------------------------------------ [2007-02-23 23:30:33] phpbugs at jessemccarthy dot net Thanks for your quick response. The reproduce code is too long? The descriptions of actual and expected output are not sufficient? ------------------------------------------------------------------------ [2007-02-23 23:20:42] tony2001@php.net And don't forget actual and expected output. ------------------------------------------------------------------------ [2007-02-23 23:19:04] tony2001@php.net Please provide a SHORT but complete reproduce code, so we won't have to debug it. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40616 -- Edit this bug report at http://bugs.php.net/?id=40616&edit=1

« previous php.bugs (#109454) next »