mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
MFH: Move temporary local storage of primary file's realpath up one block to ensure it stays on the stack.
This commit is contained in:
parent
fe13b8ef69
commit
6dff869c51
@ -1662,6 +1662,8 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
|
||||
#endif
|
||||
|
||||
zend_try {
|
||||
char realfile[MAXPATHLEN];
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
UpdateIniFromRegistry(primary_file->filename TSRMLS_CC);
|
||||
#endif
|
||||
@ -1680,7 +1682,6 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
|
||||
}
|
||||
|
||||
if (primary_file->filename) {
|
||||
char realfile[MAXPATHLEN];
|
||||
int realfile_len;
|
||||
int dummy = 1;
|
||||
if (VCWD_REALPATH(primary_file->filename, realfile)) {
|
||||
|
Loading…
Reference in New Issue
Block a user