ID: 9645
Updated by: stas
Old-Status: Open
Status: Feedback
Bug Type: Arrays related
Assigned To: 

Could you please provide short self-contained script
demonstrating the problem (including data sample)?

Previous Comments:

[2001-03-09 01:40:12] [EMAIL PROTECTED]
usort, uasort and uksort all fail to sort an array 
properly every other time they are called, unless the 
array is reset() after each call.

This is a snippet from a class that fails every other time 
it is called.

    var $sort_field;

    function cmp ($a, $b) {
        return ($a[$this -> sort_field] > $b[$this -> 
    function sort_records ($sort_field) {
        $this -> sort_field = $sort_field;
        uasort ($this -> record_data, array($this, "cmp"));


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to