signalfx / signalfx-php-tracing

OpenTracing-compatible Auto-Instrumentor for PHP (Deprecated)
https://docs.splunk.com/Observability/gdi/get-data-in/application/php/get-started.html
Other
18 stars 10 forks source link

Support for PHP 8.2 #125

Closed bobbygryzynger closed 1 year ago

bobbygryzynger commented 1 year ago

PHP 8.2 is available, but attempting to install the extension results in the following errors:

$ php signalfx-setup.php --install-dir="/opt/signalfx" 
Searching for available php binaries, this operation might take a while.
Downloading installable archive from https://github.com/signalfx/signalfx-php-tracing/releases/download/0.78.0-beta-sfx7/signalfx-library-php-0.78.0-beta-sfx7-x86_64-linux-gnu.tar.gz.
This operation might take a while.
...................
Download completed
Installed required source files to '/opt/signalfx/signalfx-library/0.78.0-beta-sfx7'
Installing to binary: php (/usr/bin/php)
PHP Warning:  copy(/tmp/signalfx-install/signalfx-library-php/trace/ext/20220829/signalfx-tracing.so): Failed to open stream: No such file or directory in signalfx-setup.php on line 406
PHP Warning:  rename(/usr/lib64/php/modules/signalfx-tracing.so.tmp,/usr/lib64/php/modules/signalfx-tracing.so): No such file or directory in signalfx-setup.php on line 407
Copied '/tmp/signalfx-install/signalfx-library-php/trace/ext/20220829/signalfx-tracing.so' to '/usr/lib64/php/modules/signalfx-tracing.so'
Created INI file '/etc/php.d/98-signalfx-tracing.ini'
Installation to 'php (/usr/bin/php)' was successful
Installing to binary: php-fpm (/usr/sbin/php-fpm)
NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'signalfx-tracing.so' (tried: /usr/lib64/php/modules/signalfx-tracing.so (/usr/lib64/php/modules/signalfx-tracing.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/signalfx-tracing.so.so (/usr/lib64/php/modules/signalfx-tracing.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'signalfx-tracing.so' (tried: /usr/lib64/php/modules/signalfx-tracing.so (/usr/lib64/php/modules/signalfx-tracing.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/signalfx-tracing.so.so (/usr/lib64/php/modules/signalfx-tracing.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'signalfx-tracing.so' (tried: /usr/lib64/php/modules/signalfx-tracing.so (/usr/lib64/php/modules/signalfx-tracing.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/signalfx-tracing.so.so (/usr/lib64/php/modules/signalfx-tracing.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  copy(/tmp/signalfx-install/signalfx-library-php/trace/ext/20220829/signalfx-tracing.so): Failed to open stream: No such file or directory in signalfx-setup.php on line 406
PHP Warning:  rename(/usr/lib64/php/modules/signalfx-tracing.so.tmp,/usr/lib64/php/modules/signalfx-tracing.so): No such file or directory in signalfx-setup.php on line 407
Copied '/tmp/signalfx-install/signalfx-library-php/trace/ext/20220829/signalfx-tracing.so' to '/usr/lib64/php/modules/signalfx-tracing.so'
Updating existing INI file '/etc/php.d/98-signalfx-tracing.ini'
Installation to 'php-fpm (/usr/sbin/php-fpm)' was successful
--------------------------------------------------
SUCCESS

[...snip...]

PHP Warning:  PHP Startup: Unable to load dynamic library 'signalfx-tracing.so' (tried: /usr/lib64/php/modules/signalfx-tracing.so (/usr/lib64/php/modules/signalfx-tracing.so: cannot open shared object file: No such file or directory), /usr/lib64/php/modules/signalfx-tracing.so.so (/usr/lib64/php/modules/signalfx-tracing.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
bobbygryzynger commented 1 year ago

Looks like PHP 8.2 is available as of https://github.com/signalfx/signalfx-php-tracing/releases/tag/0.83.1-beta-sfx8