diff options
| author | Andi Gutmans <andi@php.net> | 2001-04-30 13:04:27 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2001-04-30 13:04:27 +0000 |
| commit | ec1068d695d444cc968ed139220628470fe2f815 (patch) | |
| tree | 7ae59cf2b23b068cb4c23ef9d0c33bc2c2e07124 /Zend/zend_builtin_functions.c | |
| parent | b9927b845f5ae871e1d7261b59d1d0160f7bbd5c (diff) | |
| download | php-git-ec1068d695d444cc968ed139220628470fe2f815.tar.gz | |
- Get rid of warning
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 905e395312..a402d6d9db 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -709,26 +709,6 @@ ZEND_FUNCTION(crash) #endif -static int copy_import_use_file(zend_file_handle *fh, zval *array) -{ - if (fh->filename) { - char *extension_start; - - extension_start = strstr(fh->filename, zend_uv.import_use_extension); - if (extension_start) { - *extension_start = 0; - if (fh->opened_path) { - add_assoc_string(array, fh->filename, fh->opened_path, 1); - } else { - add_assoc_stringl(array, fh->filename, "N/A", sizeof("N/A")-1, 1); - } - *extension_start = zend_uv.import_use_extension[0]; - } - } - return 0; -} - - /* {{{ proto array get_included_files(void) Returns an array with the file names that were include_once()'d */ ZEND_FUNCTION(get_included_files) @@ -741,12 +721,9 @@ ZEND_FUNCTION(get_included_files) array_init(return_value); zend_hash_internal_pointer_reset(&EG(included_files)); while (zend_hash_get_current_key(&EG(included_files), &entry, NULL, 1) == HASH_KEY_IS_STRING) { - add_next_index_string(return_value,entry,0); + 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); */ -} /* }}} */ |
