cvs: php4 /ext/standard array.c
| From: | Brad LaFountain | Date: | Sat, 03 Aug 2002 00:40:47 +0000 |
| Subject: | cvs: php4 /ext/standard array.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13094@lists.php.net to get a copy of this message | ||
rodif_bl Fri Aug 2 20:40:47 2002 EDT
Modified files:
/php4/ext/standard array.c
Log:
one last fix for array_shift
Index: php4/ext/standard/array.c
diff -u php4/ext/standard/array.c:1.180 php4/ext/standard/array.c:1.181
--- php4/ext/standard/array.c:1.180 Thu Aug 1 13:34:31 2002
+++ php4/ext/standard/array.c Fri Aug 2 20:40:46 2002
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.180 2002/08/01 17:34:31 rodif_bl Exp $ */
+/* $Id: array.c,v 1.181 2002/08/03 00:40:46 rodif_bl Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -1704,6 +1704,7 @@
p = p->pListNext;
}
Z_ARRVAL_PP(stack)->nNextFreeElement = k+1;
+ zend_hash_rehash(Z_ARRVAL_PP(stack));
} else if(!key_len) {
Z_ARRVAL_PP(stack)->nNextFreeElement = Z_ARRVAL_PP(stack)->nNextFreeElement - 1;
}