cvs: php4(PHP_4_2_0) /ext/standard basic_functions.c
| From: | Zeev Suraski | Date: | Sat, 24 Aug 2002 00:44:04 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/standard basic_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13618@lists.php.net to get a copy of this message | ||
zeev Fri Aug 23 20:44:04 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/standard basic_functions.c
Log:
Fix bug #15106
Index: php4/ext/standard/basic_functions.c
diff -u php4/ext/standard/basic_functions.c:1.447.2.6 php4/ext/standard/basic_functions.c:1.447.2.7
--- php4/ext/standard/basic_functions.c:1.447.2.6 Wed Jul 10 10:59:22 2002
+++ php4/ext/standard/basic_functions.c Fri Aug 23 20:44:03 2002
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: basic_functions.c,v 1.447.2.6 2002/07/10 14:59:22 jason Exp $ */
+/* $Id: basic_functions.c,v 1.447.2.7 2002/08/24 00:44:03 zeev Exp $ */
#include "php.h"
#include "php_main.h"
@@ -2545,7 +2545,8 @@
memcpy(new_key, prefix, prefix_len);
memcpy(new_key+prefix_len, hash_key->arKey, hash_key->nKeyLength);
- ZEND_SET_SYMBOL_WITH_LENGTH(&EG(symbol_table), new_key, new_key_len, *var, 0, 1);
+ zend_hash_del(&EG(symbol_table), new_key, new_key_len);
+ ZEND_SET_SYMBOL_WITH_LENGTH(&EG(symbol_table), new_key, new_key_len, *var,
(*var)->refcount+1, 0);
efree(new_key);
return 0;