mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
for the primary file only lookup the real file path and
add it to the included_files list if already opened otherwise it will get opened and added to the included_files list in zend_execute_scripts
This commit is contained in:
parent
cb076717e2
commit
43b75c6ab4
1 changed files with 4 additions and 1 deletions
|
@ -1786,7 +1786,10 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
|
||||||
VCWD_CHDIR_FILE(primary_file->filename);
|
VCWD_CHDIR_FILE(primary_file->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (primary_file->filename) {
|
/* Only lookup the real file path and add it to the included_files list if already opened
|
||||||
|
* otherwise it will get opened and added to the included_files list in zend_execute_scripts
|
||||||
|
*/
|
||||||
|
if (primary_file->filename && primary_file->type != ZEND_HANDLE_FILENAME) {
|
||||||
int realfile_len;
|
int realfile_len;
|
||||||
int dummy = 1;
|
int dummy = 1;
|
||||||
if (VCWD_REALPATH(primary_file->filename, realfile)) {
|
if (VCWD_REALPATH(primary_file->filename, realfile)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue