- non-ISAPI environments but in ISAPI will use emalloc()/efree() to save
- stack space. MS only gives us 10KB those bastards.
{
zend_file_handle *prepend_file_p, *append_file_p;
zend_file_handle prepend_file, append_file;
- char old_cwd[4096];
+ char *old_cwd;
SLS_FETCH();
- old_cwd[0] = '\0';
php_hash_environment(ELS_C SLS_CC PLS_CC);
zend_activate_modules();
}
}
+ old_cwd = do_alloca(4096);
+ old_cwd[0] = '\0';
if (setjmp(EG(bailout))!=0) {
if (old_cwd[0] != '\0')
V_CHDIR(old_cwd);
+ free_alloca(old_cwd);
return;
}
if (old_cwd[0] != '\0')
V_CHDIR(old_cwd);
+ free_alloca(old_cwd);
}
PHPAPI int php_lint_script(zend_file_handle *file CLS_DC ELS_DC PLS_DC)