Skip to content

Commit

Permalink
Update invalid_post_callback_signature.phpt - add XFAIL to test
Browse files Browse the repository at this point in the history
  • Loading branch information
wantedxnn authored Sep 20, 2023
1 parent 0fbd7f1 commit c9f8016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/tests/invalid_post_callback_signature.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The invalid callback signature should not cause a fatal, so it is checked before
is invalid, the callback will not be called.
--EXTENSIONS--
opentelemetry
--XFAIL--
Providing a post invalid callback signature causes segfault. The behaviour is currently disabled, so instead of a segfault a message is logged to error_log.
--FILE--
<?php
OpenTelemetry\Instrumentation\hook(
Expand All @@ -31,4 +33,4 @@ TestClass::test();
--EXPECTF--
string(3) "pre"
string(4) "test"
OpenTelemetry: post hook invalid signature, class=TestClass function=test
OpenTelemetry: post hook invalid signature, class=TestClass function=test

0 comments on commit c9f8016

Please sign in to comment.