From: Andi Gutmans Date: Thu, 5 Oct 2000 17:58:46 +0000 (+0000) Subject: - Updated included_files() also for plain include()/require(). X-Git-Tag: php-4.0.3~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d84c5a2238dd65b1e44de4f9a31cec17cb41d48f;p=php - Updated included_files() also for plain include()/require(). --- diff --git a/Zend/zend-scanner.l b/Zend/zend-scanner.l index 0e0a670fd5..0cc11b5dd9 100644 --- a/Zend/zend-scanner.l +++ b/Zend/zend-scanner.l @@ -401,6 +401,10 @@ zend_op_array *compile_filename(int type, zval *filename CLS_DC ELS_DC) retval = zend_compile_file(&file_handle, type CLS_CC); + if (retval && file_handle.opened_path) { + int dummy = 1; + zend_hash_add(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1, (void *)&dummy, sizeof(int), NULL); + } zend_destroy_file_handle(&file_handle CLS_CC); if (filename==&tmp) {