summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2000-09-18 13:43:20 +0000
committerStanislav Malyshev <stas@php.net>2000-09-18 13:43:20 +0000
commit591821887269dba6a34f4d1696ce641ab4b7d44b (patch)
tree69ca0d3e213d4316cdef85ee0ae404bb4f1001a5 /Zend/zend_builtin_functions.c
parent08e1c852aa7a42f6d3a4c2099e9ac801090485aa (diff)
downloadphp-git-591821887269dba6a34f4d1696ce641ab4b7d44b.tar.gz
Made get_included_files() work again, in somewhat different way
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index 7c0941186a..86c1a7611b 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -716,12 +716,19 @@ static int copy_import_use_file(zend_file_handle *fh, zval *array)
Returns an array with the file names that were include_once()'d */
ZEND_FUNCTION(get_included_files)
{
+ char *entry;
if (ZEND_NUM_ARGS() != 0) {
ZEND_WRONG_PARAM_COUNT();
}
array_init(return_value);
- zend_hash_apply_with_argument(&EG(included_files), (apply_func_arg_t) copy_import_use_file, return_value);
+ zend_hash_internal_pointer_reset(&EG(included_files));
+ while(zend_hash_get_current_key(&EG(included_files), &entry,NULL) == HASH_KEY_IS_STRING) {
+ add_next_index_string(return_value,entry,0);
+ zend_hash_move_forward(&EG(included_files));
+ }
+
+ /* zend_hash_apply_with_argument(&EG(included_files), (apply_func_arg_t) copy_import_use_file, return_value); */
}
/* }}} */