diff options
| author | Zeev Suraski <zeev@php.net> | 2001-08-02 07:00:43 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-08-02 07:00:43 +0000 |
| commit | c14baeece3d5fed4e20e43dce42ca04ef1f5618a (patch) | |
| tree | adebdc7af8e27a31f3b93b5a2f13f3bc0bea57ec /Zend/zend_constants.c | |
| parent | 7deb44e36d98395af07e629ad9b646e0adb8cf55 (diff) | |
| download | php-git-c14baeece3d5fed4e20e43dce42ca04ef1f5618a.tar.gz | |
Avoid going over huge lists of functions, classes and constants.
Special thanks to the guys from the MS lab for the profiling tools :)
Diffstat (limited to 'Zend/zend_constants.c')
| -rw-r--r-- | Zend/zend_constants.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_constants.c b/Zend/zend_constants.c index cb4ac03333..d76619ccbf 100644 --- a/Zend/zend_constants.c +++ b/Zend/zend_constants.c @@ -54,9 +54,9 @@ void zend_copy_constants(HashTable *target, HashTable *source) static int clean_non_persistent_constant(zend_constant *c TSRMLS_DC) { if (c->flags & CONST_PERSISTENT) { - return 0; + return ZEND_HASH_APPLY_STOP; } else { - return 1; + return ZEND_HASH_APPLY_REMOVE; } } @@ -156,7 +156,7 @@ int zend_shutdown_constants(TSRMLS_D) void clean_non_persistent_constants(TSRMLS_D) { - zend_hash_apply(EG(zend_constants), (apply_func_t) clean_non_persistent_constant TSRMLS_CC); + zend_hash_reverse_apply(EG(zend_constants), (apply_func_t) clean_non_persistent_constant TSRMLS_CC); } |
