From 4d09e78b6cb1f67b23b5130b4851855ca9e7f78c Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 10 Dec 2006 04:21:12 +0000 Subject: [PATCH] cacher: handle the case on compiler error, pass testcase bug35740.phpt git-svn-id: svn://svn.lighttpd.net/xcache/trunk@319 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xcache.c b/xcache.c index e8d682d..379da31 100644 --- a/xcache.c +++ b/xcache.c @@ -1257,10 +1257,11 @@ static zend_op_array *xc_compile_file(zend_file_handle *h, int type TSRMLS_DC) / catched = 1; } zend_end_try(); - xce.data.php = &php; - if (catched) { + if (catched || !op_array) { goto err_aftersandbox; } + + xce.data.php = &php; } /* }}} */ #ifdef HAVE_INODE