summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2006-03-09 20:32:22 +0000
committerSara Golemon <pollita@php.net>2006-03-09 20:32:22 +0000
commit6dff869c51e9ce779c8216a84bcd7b3cf1179b3b (patch)
treefc55403c766e9bf8ead06a95f9036c5915b691c2
parentfe13b8ef692a505786bb42423e1836e1fc014547 (diff)
downloadphp-git-6dff869c51e9ce779c8216a84bcd7b3cf1179b3b.tar.gz
MFH: Move temporary local storage of primary file's realpath up one block to ensure it stays on the stack.
-rw-r--r--main/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/main.c b/main/main.c
index b6ee590a67..7dafc652b7 100644
--- a/main/main.c
+++ b/main/main.c
@@ -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)) {