diff options
author | Zeev Suraski <zeev@php.net> | 1999-12-04 14:26:26 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-12-04 14:26:26 +0000 |
commit | efc84af94003531f2e670cdc754b0c455656198c (patch) | |
tree | 71baf7b9def40a676fa93f57d14b48b491d80388 /Zend/zend_compile.c | |
parent | ad30b198d4819491eb5d0524d696a91608aa0f38 (diff) | |
download | php-git-efc84af94003531f2e670cdc754b0c455656198c.tar.gz |
- Implement get_used_files() and get_imported_files()
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 247ad5567a..a21c2ed16e 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -77,6 +77,13 @@ static void build_runtime_defined_function_key(zval *result, zval *name, zend_op } +static int zend_open_file_dtor_wrapper(zend_file_handle *fh) +{ + zend_open_file_dtor(fh); + return 1; +} + + void init_compiler(CLS_D ELS_DC) { zend_stack_init(&CG(bp_stack)); @@ -95,7 +102,7 @@ void init_compiler(CLS_D ELS_DC) init_resource_list(ELS_C); CG(unclean_shutdown) = 0; zend_llist_init(&CG(open_files), sizeof(zend_file_handle), (void (*)(void *)) zend_open_file_dtor, 0); - zend_hash_init(&CG(used_files), 5, NULL, NULL , 0); + zend_hash_init(&CG(used_files), 5, NULL, (int (*)(void *)) zend_open_file_dtor_wrapper, 0); } |