]> granicus.if.org Git - php/commitdiff
Do not assume array contains numeric values.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 9 Aug 2003 16:43:28 +0000 (16:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 9 Aug 2003 16:43:28 +0000 (16:43 +0000)
ext/standard/array.c

index e396a2cd846eb6f33016ff8a30fb3ec408dd42e1..ae058cd1a21c6845b7919e6aab866c77583ac1be 100644 (file)
@@ -3376,7 +3376,7 @@ PHP_FUNCTION(array_reduce)
                result = *initial;
        } else {
                MAKE_STD_ZVAL(result);
-               ZVAL_LONG(result, 0);
+               ZVAL_NULL(result);
        }
 
        /* (zval **)input points to an element of argument stack