summaryrefslogtreecommitdiff
path: root/Zend/zend_ast.h
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-04-02 02:05:25 +0300
committerDmitry Stogov <dmitry@zend.com>2015-04-02 02:05:25 +0300
commitea09a9fa325fe21ebc81c41a63ab8c2f377d7f75 (patch)
tree333736f85df668e9cba95ee567a59d3e889260c3 /Zend/zend_ast.h
parent956fa034e3b9de643153fd83fd63d36547bfa821 (diff)
downloadphp-git-ea09a9fa325fe21ebc81c41a63ab8c2f377d7f75.tar.gz
Convert fatal errors into EngineExceptions
Make zval_update_constant_ex(), zval_update_constant(), zend_update_class_constants() and zend_ast_evaluate() return SUCCESS or FAILURE.
Diffstat (limited to 'Zend/zend_ast.h')
-rw-r--r--Zend/zend_ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index 8cd06419be..553578f848 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -203,7 +203,7 @@ ZEND_API zend_ast *zend_ast_create_decl(
ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind kind, ...);
ZEND_API zend_ast *zend_ast_list_add(zend_ast *list, zend_ast *op);
-ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope);
+ZEND_API int zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope);
ZEND_API zend_string *zend_ast_export(const char *prefix, zend_ast *ast, const char *suffix);
ZEND_API zend_ast *zend_ast_copy(zend_ast *ast);