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:
Sara Golemon 2006-03-09 20:32:22 +00:00
parent fe13b8ef69
commit 6dff869c51

View File

@ -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)) {