Skip to content

Commit a7331b1

Browse files
committed
Comment
1 parent e775c27 commit a7331b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Zend/zend_ast.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ ZEND_API zend_result ZEND_FASTCALL zend_ast_evaluate(zval *result, zend_ast *ast
350350
ZEND_API zend_result ZEND_FASTCALL zend_ast_evaluate_ex(zval *result, zend_ast *ast, zend_class_entry *scope, bool *short_circuited_ptr, zend_ast_evaluate_ctx *ctx);
351351
ZEND_API zend_string *zend_ast_export(const char *prefix, zend_ast *ast, const char *suffix);
352352

353+
/* Copies 'ast' to the heap, returns a refcounted AST reference */
353354
ZEND_API zend_ast_ref * ZEND_FASTCALL zend_ast_copy(zend_ast *ast);
355+
/* Duplicates 'ast' on the arena */
354356
ZEND_API zend_ast * ZEND_FASTCALL zend_ast_dup(zend_ast *ast);
355357
ZEND_API void ZEND_FASTCALL zend_ast_destroy(zend_ast *ast);
356358
ZEND_API void ZEND_FASTCALL zend_ast_ref_destroy(zend_ast_ref *ast);

0 commit comments

Comments
 (0)