dd-trace-php
dd-trace-php copied to clipboard
[BUG] PHP 8.2 compatibility ?
A small set of failed tests, but 1 with segfault (tests/ext/sandbox/fatal_errors_ignored_in_shutdown.phpt)
TEST 157/341 [tests/ext/sandbox-regression/method_invoked_via_reflection.phpt]
========DIFF========
001+ Deprecated: Creation of dynamic property Test::$append is deprecated in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox-regression/method_invoked_via_reflection.php on line 4
CONSTRUCT
HOOK CONSTRUCT
METHOD
006+
007+ Deprecated: Creation of dynamic property Test::$append is deprecated in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox-regression/method_invoked_via_reflection.php on line 4
CONSTRUCT created via reflection
HOOK CONSTRUCT created via reflection
METHOD created via reflection
========DONE========
FAIL [Sandbox regression] Method invoked via reflection correctly returns created object [tests/ext/sandbox-regression/method_invoked_via_reflection.phpt]
TEST 209/341 [tests/ext/sandbox/exception_from_user_error_handler_internal.phpt]
========DIFF========
Spans count: 1
error: 1
error.type: Exception
004+ error.msg: Uncaught Exception: chmod(): Cannot call chmod() for a non-standard stream in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/exception_from_user_error_handler_internal.php:6
004- error.msg: Uncaught Exception: chmod(): Can not call chmod() for a non-standard stream in %s:%d
Has error.stack: 1
========DONE========
FAIL Exceptions from user error handler are tracked for instrumented internal functions [tests/ext/sandbox/exception_from_user_error_handler_internal.phpt]
TEST 225/341 [tests/ext/sandbox/fatal_errors_ignored_in_shutdown.phpt]
========DIFF========
--
array_sum
array_sum
array_sum
012+
013+ Termsig=11
012- Error raised in ddtrace's closure defined at %s:%d for flushTracer(): Allowed memory size of 2097152 bytes exhausted %s in %s on line %d
013- No finished traces to be sent to the agent
========DONE========
FAIL Fatal errors are ignored in shutdown handler [tests/ext/sandbox/fatal_errors_ignored_in_shutdown.phpt]
TEST 277/341 [tests/ext/sandbox/hook_method/posthook_scope_01.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/posthook_scope_01.php on line 6
002+
003+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/posthook_scope_01.php on line 13
I have spoken.
BaseClass::speak hooked in BaseClass.
I have spoken.
--
========DONE========
FAIL hook_method posthook is called with the correct scope (no override) [tests/ext/sandbox/hook_method/posthook_scope_01.phpt]
TEST 278/341 [tests/ext/sandbox/hook_method/posthook_scope_02.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/posthook_scope_02.php on line 6
I have spoken.
ChildClass::speak hooked.
========DONE========
FAIL hook_method posthook is called with the correct scope (parent) [tests/ext/sandbox/hook_method/posthook_scope_02.phpt]
TEST 279/341 [tests/ext/sandbox/hook_method/posthook_scope_03.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/posthook_scope_03.php on line 6
002+
003+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/posthook_scope_03.php on line 13
I have spoken.
ChildClass::speak hooked in BaseClass.
ChildClass::speak hooked in ChildClass.
========DONE========
FAIL hook_method posthook is called with the correct scope (parent) [tests/ext/sandbox/hook_method/posthook_scope_03.phpt]
TEST 288/341 [tests/ext/sandbox/hook_method/prehook_error_01.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/prehook_error_01.php on line 5
Greeter::greet hooked.
Hello, Datadog.
========DONE========
FAIL DDTrace\hook_method prehook error is sandboxed [tests/ext/sandbox/hook_method/prehook_error_01.phpt]
TEST 292/341 [tests/ext/sandbox/hook_method/prehook_scope_01.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/prehook_scope_01.php on line 5
002+
003+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/prehook_scope_01.php on line 11
BaseClass::speak hooked in BaseClass.
I have spoken.
ChildClass::speak hooked in ChildClass.
--
========DONE========
FAIL hook_method prehook is called with the correct scope (no override) [tests/ext/sandbox/hook_method/prehook_scope_01.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/prehook_scope_02.php on line 5
ChildClass::speak hooked.
I have spoken.
========DONE========
FAIL hook_method prehook is called with the correct scope (parent) [tests/ext/sandbox/hook_method/prehook_scope_02.phpt]
TEST 294/341 [tests/ext/sandbox/hook_method/prehook_scope_03.phpt]
========DIFF========
001+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/prehook_scope_03.php on line 5
002+
003+ Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /dev/shm/BUILD/php82-php-pecl-datadog-trace-0.79.0/NTS/tests/ext/sandbox/hook_method/prehook_scope_03.php on line 11
ChildClass::speak hooked in ChildClass.
ChildClass::speak hooked in BaseClass.
I have spoken.
========DONE========
FAIL hook_method prehook is called with the correct scope (parent) [tests/ext/sandbox/hook_method/prehook_scope_03.phpt]
Thanks for the report! We'll definitely take a look at this soon.
I've addressed some of the low hanging fruit since I had a moment, but the sigsegv will have to be looked at later. Thanks again for the report.
Hello @remicollet , PHP 8.2 is now supported since our last release.