summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index 110673e795..bca1dbd9df 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -896,6 +896,8 @@ void zend_set_utility_values(zend_utility_values *utility_values) /* {{{ */
/* this should be compatible with the standard zenderror */
ZEND_COLD void zenderror(const char *error) /* {{{ */
{
+ CG(parse_error) = 0;
+
if (EG(exception)) {
/* An exception was thrown in the lexer, don't throw another in the parser. */
return;