Consider the following:

<?php $a = array('a', 'b', 'c', 'a'=>0, 'b'=>1, 'c'=>2);
      sort($a);
      print_r($a);
?>

This produces a bogus output:

Array
(
    [0] => a
    [1] => b
    [2] => 0
    [3] => c
    [4] => 1
    [5] => 2
)


Notice how 0 and c are switched incorrectly. Attached is a patch to 
zend_operators.c that fixes it. 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to