From:             [EMAIL PROTECTED]
Operating system: Windows XP Pro Build 2600
PHP version:      4.3.0
PHP Bug Type:     Arrays related
Bug description:  Asort output not fully sorted in mixed type array

I use PHP4.0.3 on Apache 1.3.27, both standard binaries as supplied on the
download site. Freshly installed yesterday. No modifications. I used the
php.ini-recommended file as php.ini
Installed exactly as prescribed in install.txt, only instead of c:/php I
use d:/program files/php and changed the ini accordingly.
Adapted the apache conf file as described. 

I used below script in an attempt to judge workload forced on the php
server as well as asort() speed. Output is a bit large to add here, but
can be requested via my email. In short, the array IS sorted, but in all
identical "subrows" every now and then one or two array items are 1's (I
assume the equivalent of TRUE. Rerunning the script  results in the SAME
faults. Sorting within the script twice or more does not change the faulty
array.
Tried with single-type arrays, that doesn't seem to produce the same
errors, but this was not thoroughly tested. 

I am sorry, but I haven't figured out a way to get a backtrace yet, I  am
relatively new to this PHP stuff.
For your convenience, you can run the script from my server by opening
http://eniac.xs4all.nl/tut8.php and see my PHP server details on
http://eniac.xs4all.nl/x345info.php (I noticed this script still 'sees'
remainders of previous 1.3.24 apache as well as the correct 1.3.27
installs, allthough the .24 has been removed...

More info ? Contact me at my email. Thanks!
<?php
        $arr1 = array("a","b","c","d","4",5,4,"true","TRUE",true);
/*
 concatenate to itself 10 times to get a real LONG array (5120 elements)
*/
        for ($p = 1; $p < 10; $p++) 
                { $arr1 = array_merge ($arr1,$arr1); }
        asort($arr1);
        foreach ($arr1 as $val) 
                { print $val."  ";}

?>
-- 
Edit bug report at http://bugs.php.net/?id=21444&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21444&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21444&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21444&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21444&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21444&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21444&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21444&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21444&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21444&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21444&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21444&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21444&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21444&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21444&r=gnused

Reply via email to