iliaa Sat Aug 9 12:43:28 2003 EDT
Modified files:
/php-src/ext/standard array.c
Log:
Do not assume array contains numeric values.
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.239 php-src/ext/standard/array.c:1.240
--- php-src/ext/standard/array.c:1.239 Fri Aug 8 19:50:36 2003
+++ php-src/ext/standard/array.c Sat Aug 9 12:43:28 2003
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.239 2003/08/08 23:50:36 iliaa Exp $ */
+/* $Id: array.c,v 1.240 2003/08/09 16:43:28 iliaa Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -3376,7 +3376,7 @@
result = *initial;
} else {
MAKE_STD_ZVAL(result);
- ZVAL_LONG(result, 0);
+ ZVAL_NULL(result);
}
/* (zval **)input points to an element of argument stack
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php