summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_ast.c')
-rw-r--r--Zend/zend_ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c
index fe9f2f0de3..58119c2598 100644
--- a/Zend/zend_ast.c
+++ b/Zend/zend_ast.c
@@ -203,7 +203,7 @@ static int zend_ast_add_array_element(zval *result, zval *offset, zval *expr)
zend_hash_index_update(Z_ARRVAL_P(result), zend_dval_to_lval(Z_DVAL_P(offset)), expr);
break;
default:
- zend_throw_error(zend_ce_error, E_EXCEPTION, "Illegal offset type");
+ zend_throw_error(zend_ce_error, "Illegal offset type");
return FAILURE;
}
return SUCCESS;
@@ -405,7 +405,7 @@ ZEND_API int zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *sc
}
break;
default:
- zend_throw_error(zend_ce_error, E_EXCEPTION, "Unsupported constant expression");
+ zend_throw_error(zend_ce_error, "Unsupported constant expression");
ret = FAILURE;
}
return ret;