summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.c
diff options
context:
space:
mode:
authorAaron Piotrowski <aaron@trowski.com>2015-07-03 16:04:33 -0500
committerAaron Piotrowski <aaron@trowski.com>2015-07-03 17:53:41 -0500
commit22c38b2ef58fc97ca8cd82ae456d0082d2a8cd22 (patch)
tree43c93840eeb0bdbbe32af87291f9ff4216c264aa /Zend/zend_ast.c
parent5a99c07eccb09c3c8b9f6fe4b83020163aad6498 (diff)
downloadphp-git-22c38b2ef58fc97ca8cd82ae456d0082d2a8cd22.tar.gz
Remove need to pass error level
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;