Bug description
When attempting to use this library with a recent version of opentracing/opentracing in order to support PHP 8.1, it crashes with
PHP Fatal error: Declaration of DDTrace\OpenTracer\Tracer::getScopeManager() must be compatible with OpenTracing\Tracer::getScopeManager(): OpenTracing\ScopeManager in /opt/datadog-php/dd-trace-sources/src/DDTrace/OpenTracer/Tracer.php
Note that to support PHP 8.1, it is required to use opentracing 1.0.2 at least.
PHP version
8.1.2
Tracer version
0.68.1
Installed extensions
[PHP Modules]
amqp
bcmath
calendar
Core
ctype
curl
date
ddtrace
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaml
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
ddtrace
OS info
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Diagnostics and configuration
Output of phpinfo() (ddtrace >= 0.47.0)
No easy way to do this, sorry.
Upgrading info
From PHP 7.4.12 to 8.1.3
Since this library supports php 5.4, this does not seem very easy to fix to say the least, but maybe you already have ways to deal with such situations?
Bug description
When attempting to use this library with a recent version of
opentracing/opentracingin order to support PHP 8.1, it crashes withNote that to support PHP 8.1, it is required to use opentracing 1.0.2 at least.
PHP version
8.1.2
Tracer version
0.68.1
Installed extensions
OS info
Diagnostics and configuration
Output of phpinfo() (ddtrace >= 0.47.0)
No easy way to do this, sorry.
Upgrading info
From PHP 7.4.12 to 8.1.3
Since this library supports php 5.4, this does not seem very easy to fix to say the least, but maybe you already have ways to deal with such situations?