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

index 81c5892ece2e59ff9622038e7e0ffe5481f91618..0e2b8843e8be6f916ad8c495d956aa35334d758f 100644 (file)
@@ -3210,7 +3210,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