cvs: php-src /ext/spl spl_array.c
| From: | Stanislav Malyshev | Date: | Tue, 13 Apr 2004 16:21:24 +0000 |
| Subject: | cvs: php-src /ext/spl spl_array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27043@lists.php.net to get a copy of this message | ||
stas Tue Apr 13 12:21:24 2004 EDT
Modified files:
/php-src/ext/spl spl_array.c
Log:
fix bug #27979
http://cvs.php.net/diff.php/php-src/ext/spl/spl_array.c?r1=1.36&r2=1.37&ty=u
Index: php-src/ext/spl/spl_array.c
diff -u php-src/ext/spl/spl_array.c:1.36 php-src/ext/spl/spl_array.c:1.37
--- php-src/ext/spl/spl_array.c:1.36 Sat Mar 20 11:09:42 2004
+++ php-src/ext/spl/spl_array.c Tue Apr 13 12:21:24 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_array.c,v 1.36 2004/03/20 16:09:42 helly Exp $ */
+/* $Id: spl_array.c,v 1.37 2004/04/13 16:21:24 stas Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -198,7 +198,7 @@
if (!offset) {
value->refcount++;
- add_next_index_zval(intern->array, value);
+ zend_hash_next_index_insert(HASH_OF(intern->array), (void**)&value, sizeof(void*), NULL);
return;
}
switch(Z_TYPE_P(offset)) {
@@ -216,7 +216,7 @@
index = Z_LVAL_P(offset);
}
value->refcount++;
- add_index_zval(intern->array, index, value);
+ zend_hash_index_update(HASH_OF(intern->array), index, (void**)&value, sizeof(void*),
NULL);
return;
default:
zend_error(E_WARNING, "Illegal offset type");