1
0
Fork 0

avoid crash by dirpath/filepath on parser error

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@683 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2009-09-21 10:09:16 +00:00
parent 888824c874
commit 5ae2aa9167
1 changed files with 7 additions and 0 deletions

View File

@ -1751,6 +1751,13 @@ static zend_op_array *xc_compile_file(zend_file_handle *h, int type TSRMLS_DC) /
#ifdef ZEND_ENGINE_2_1
php.autoglobals = NULL;
#endif
#ifdef IS_UNICODE
php.udirpath = NULL;
php.ufilepath = NULL;
#endif
php.dirpath = NULL;
memset(&php.op_array_info, 0, sizeof(php.op_array_info));
zend_try {