summaryrefslogtreecommitdiff
path: root/Zend/zend_constants.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2003-06-02 12:13:11 +0000
committerStanislav Malyshev <stas@php.net>2003-06-02 12:13:11 +0000
commitf7f5a5ea6bac8cbd6e02cf1f4d8445030435fda4 (patch)
treeef0986a333095afd13dc7048a0a25c2e58570de8 /Zend/zend_constants.c
parentaeabe8580427712da26101a27d3b382abffd4d39 (diff)
downloadphp-git-f7f5a5ea6bac8cbd6e02cf1f4d8445030435fda4.tar.gz
MEGA-patch: namespaces are R.I.P.
Diffstat (limited to 'Zend/zend_constants.c')
-rw-r--r--Zend/zend_constants.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c
index 10995a8084..340a9dcecd 100644
--- a/Zend/zend_constants.c
+++ b/Zend/zend_constants.c
@@ -80,7 +80,7 @@ void clean_module_constants(int module_number TSRMLS_DC)
int zend_startup_constants(TSRMLS_D)
{
- EG(zend_constants) = &CG(global_namespace).constants_table;
+ EG(zend_constants) = (HashTable *) malloc(sizeof(HashTable));
if (zend_hash_init(EG(zend_constants), 20, NULL, ZEND_CONSTANT_DTOR, 1)==FAILURE) {
return FAILURE;
@@ -143,6 +143,7 @@ void zend_register_standard_constants(TSRMLS_D)
int zend_shutdown_constants(TSRMLS_D)
{
zend_hash_destroy(EG(zend_constants));
+ free(EG(zend_constants));
return SUCCESS;
}