summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/main.c b/main/main.c
index 48c1a63c72..ce33cfb983 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1200,9 +1200,7 @@ static ZEND_COLD void php_error_cb(int type, const char *error_filename, const u
sapi_header_op(SAPI_HEADER_REPLACE, &ctr);
}
/* the parser would return 1 (failure), we can bail out nicely */
- if (type == E_PARSE) {
- CG(parse_error) = 0;
- } else {
+ if (type != E_PARSE) {
/* restore memory limit */
zend_set_memory_limit(PG(memory_limit));
efree(buffer);