Zend: Remove dependency on zend.h for certain headers #12166
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allows to move AST definitions out from zend_compile.h and into zend_ast.h
The motivation for this is to be able to move the FCC/FCI struct declarations and the relevant functions into their own header, so that it can be included in
zend_gc.h
and movezend_get_gc_buffer_add_fcc()
fromZend_API.h
tozend_gc.h
.However, currently
zend_gc.h
does not depend onzend.h
and I don't think it should, howeverOBJ_RELEASE()
which is used byzend_fcc_dtor()
(which would logically be moved to the new header for FCI/FCC strucs) means it would have a dependency onZend/zend_objects_API.h
thus the starting point for the dependency reduction.