From: Andi Gutmans Date: Fri, 10 Dec 2004 22:59:25 +0000 (+0000) Subject: - Fix bug #27728 (Can't return within a zend_try{} or the previous X-Git-Tag: RELEASE_0_2~539 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e942cb07fef69e27815d54873acc1b6e126e0c4;p=php - Fix bug #27728 (Can't return within a zend_try{} or the previous state isn't restored. --- diff --git a/main/main.c b/main/main.c index 884d56adad..81952f1174 100644 --- a/main/main.c +++ b/main/main.c @@ -1740,6 +1740,7 @@ PHPAPI int php_handle_auth_data(const char *auth TSRMLS_DC) PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC) { zend_op_array *op_array; + zend_bool retval = FAILURE; zend_try { op_array = zend_compile_file(file, ZEND_INCLUDE TSRMLS_CC); @@ -1748,13 +1749,11 @@ PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC) if (op_array) { destroy_op_array(op_array TSRMLS_CC); efree(op_array); - return SUCCESS; - } else { - return FAILURE; + retval = SUCCESS; } } zend_end_try(); - return FAILURE; + return retval; } /* }}} */