elastic / elastic/apm-agent-php
TypeError: strncmp(): Argument #3 ($length) must be of type int, null given src/ElasticApm/Impl/AutoInstrument/Autoloader.php:54
Open
agent-php
bug
priority: high
triaged
- Dominant language
- PHP
- Stars
- 268
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
TypeError: strncmp(): Argument #3 ($length) must be of type int, null given in /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/Autoloader.php:54
Relevant stack trace
Stack trace:
#0 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/Autoloader.php(54): strncmp()
#1 /opt/elastic/apm-agent-php/src/ElasticApm/Impl/AutoInstrument/Autoloader.php(63): Elastic\Apm\Impl\AutoInstrument\Autoloader::shouldAutoloadCodeForClass()
#2 [internal function]: Elastic\Apm\Impl\AutoInstrument\Autoloader::autoloadCodeForClass()
PHP 8.1.12
Contributor guide
Assessment
This issue has not been assessed yet.