diff options
author | Dmitry Stogov <dmitry@php.net> | 2010-04-20 11:05:54 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2010-04-20 11:05:54 +0000 |
commit | dd5c478be61a0ef94b54837cfa875c964356e14f (patch) | |
tree | afdce3c072b3c27f7721c6f24895a147a9f825b4 /Zend/zend.c | |
parent | 94dd83722b57c4613ccf8371a3c4f50ffc274584 (diff) | |
download | php-git-dd5c478be61a0ef94b54837cfa875c964356e14f.tar.gz |
Added concept of interned strings. All strings constants known at compile time are allocated in a single copy and never changed.
Diffstat (limited to 'Zend/zend.c')
-rw-r--r-- | Zend/zend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index 53bae4c95f..698992a6e6 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -693,6 +693,7 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions TS EG(user_exception_handler) = NULL; #endif + zend_interned_strings_init(TSRMLS_C); zend_startup_builtin_functions(TSRMLS_C); zend_register_standard_constants(TSRMLS_C); zend_register_auto_global("GLOBALS", sizeof("GLOBALS") - 1, NULL TSRMLS_CC); @@ -781,6 +782,8 @@ void zend_shutdown(TSRMLS_D) /* {{{ */ GLOBAL_CONSTANTS_TABLE = NULL; #endif zend_destroy_rsrc_list_dtors(); + + zend_interned_strings_dtor(TSRMLS_C); } /* }}} */ |