fix: most tests are failing (crashing) due to lack of refcount increase #7
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.
Testing it on PHP-8.2. In debug mode it results in following assertion
Assertion failed: (zval_gc_type((ref)->gc.u.type_info) == 7 || zval_gc_type((ref)->gc.u.type_info) == 8), function gc_possible_root, file zend_gc.c, line 647
PASS Check if otel_instrumentation is loaded [tests/001.phpt]
PASS Check if hook returns true [tests/002.phpt]
FAIL Check if hooks are invoked [tests/003.phpt]
FAIL Check if multiple hooks are invoked [tests/004.phpt]
FAIL Check if hooks receives function information [tests/005.phpt]
FAIL Check if hooks receives arguments and return value [tests/006.phpt]
FAIL Check if hook receives exception [tests/007.phpt]
FAIL Check if hook can modify arguments [tests/008.phpt]
FAIL Check if hook can modify not provided arguments [tests/009.phpt]
FAIL Check if hook can modify return value [tests/010.phpt]
FAIL Check if hooks are invoked for closures [tests/function_closure.phpt]
FAIL Check if hooks are invoked for first class callables [tests/function_first_class_callable.phpt]
`