Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: strncmp(): Argument #3 ($length) must be of type int, null given src/ElasticApm/Impl/AutoInstrument/Autoloader.php:54 #817

Open
sakarikl opened this issue Nov 11, 2022 · 3 comments
Labels

Comments

@sakarikl
Copy link

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

@sakarikl sakarikl added the bug Something isn't working label Nov 11, 2022
@sakarikl
Copy link
Author

This is something rare. It has come up 24 times in 3 days with more than a million request.

@SergeyKleyman
Copy link
Contributor

@sakarikl Could you please check if this issue is still reproducible with the latest agent release?

@sakarikl
Copy link
Author

sakarikl commented Dec 5, 2023

There was no known way to reproduce this and Elastic APM is no longer running on those servers that generated these errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Planned
Development

No branches or pull requests

2 participants