Skip to content

Commit

Permalink
Update invalid_pre_callback_signature_with_function.phpt - add XFAIL …
Browse files Browse the repository at this point in the history
…to test
  • Loading branch information
wantedxnn authored Sep 20, 2023
1 parent 45d9e5c commit 0b2e9f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/tests/invalid_pre_callback_signature_with_function.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ is invalid, the callback will not be called and a message will be written to err
null class.
--EXTENSIONS--
opentelemetry
--XFAIL--
Providing a invalid pre callback signature for function without class 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 @@ -30,4 +32,4 @@ hello();
--EXPECTF--
OpenTelemetry: pre hook invalid signature, class=null function=hello
string(5) "hello"
string(4) "post"
string(4) "post"

0 comments on commit 0b2e9f2

Please sign in to comment.