ID: 25164 User updated by: linuxfool at hotmail dot com Reported By: linuxfool at hotmail dot com -Status: Bogus +Status: Open Bug Type: PHP options/info functions Operating System: RH9 PHP Version: 4.2.2 New Comment:
I re-tried my issue with Apache/2.0.47 (Unix) PHP/4.3.2 Still having the same problem. Previous Comments: ------------------------------------------------------------------------ [2003-08-20 02:12:15] [EMAIL PROTECTED] Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. 4.2.2 is way to old ------------------------------------------------------------------------ [2003-08-20 02:06:37] linuxfool at hotmail dot com Description: ------------ See Code. Thanks for your time. Reproduce code: --------------- echo "<pre>"; echo "RUNNING PHP VER 4.2.2 ON RH 9\n"; $array1 = array (1=>9,2=>10,3=>5,4=>54,5=>30,6=>1,7=>22,8=>22,9=>111,10=>110,11=>30); $array2 = array (1=>9,2=>10,3=>5,4=>54,5=>30,6=>1,7=>22,8=>22,9=>111,10=>110,11=>112); print_r($array1); print_r($array2); print_r(array_diff($array1,$array2)); echo "If the last value in array1 (30) is changed to anything other then 30(that i am aware of) array_diff works right.\nHave I been smoking too much crack again?\n"; echo "</pre>"; ?> Expected result: ---------------- RUNNING PHP VER 4.2.2 ON RH 9 Array ( [1] => 9 [2] => 10 [3] => 5 [4] => 54 [5] => 30 [6] => 1 [7] => 22 [8] => 22 [9] => 111 [10] => 110 [11] => 30 ) Array ( [1] => 9 [2] => 10 [3] => 5 [4] => 54 [5] => 30 [6] => 1 [7] => 22 [8] => 22 [9] => 111 [10] => 110 [11] => 112 ) Array ( [11] => 30 ) If the last value in array1 (30) is changed to anything other then 30(that i am aware of) it works right. Have I been smoking too much crack again? Actual result: -------------- RUNNING PHP VER 4.2.2 ON RH 9 Array ( [1] => 9 [2] => 10 [3] => 5 [4] => 54 [5] => 30 [6] => 1 [7] => 22 [8] => 22 [9] => 111 [10] => 110 [11] => 30 ) Array ( [1] => 9 [2] => 10 [3] => 5 [4] => 54 [5] => 30 [6] => 1 [7] => 22 [8] => 22 [9] => 111 [10] => 110 [11] => 112 ) Array ( ) If the last value in array1 (30) is changed to anything other then 30(that i am aware of) it works right. Have I been smoking too much crack again? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25164&edit=1
