]> granicus.if.org Git - php/commitdiff
Fixes array test 004.phpt. Nice copy paste error.
authorMarcus Boerger <helly@php.net>
Wed, 21 Aug 2002 11:23:44 +0000 (11:23 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 21 Aug 2002 11:23:44 +0000 (11:23 +0000)
ext/standard/array.c

index de666674f3e852c27b67d0b68d0be10c33bf745a..66fe1423830130fe7165781e90e97fc06dbb38d6 100644 (file)
@@ -351,7 +351,7 @@ static int array_natural_general_compare(const void *a, const void *b, int fold_
                convert_to_string(&first);
        }
        if (Z_TYPE_P(sval) != IS_STRING) {
-               zval_copy_ctor(&first);
+               zval_copy_ctor(&second);
                convert_to_string(&second);
        }