elastic / elastic/apm-agent-php
TypeError: spl_object_id() expects parameter 1 to be object, resource given
- Dominant language
- PHP
- Stars
- 268
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Vercion v1.10.0
```
[Elastic APM PHP Tracer] 2023-09-14 11:59:15.065230+06:00 [PID: 1787] [TID: 1787] [ERROR] [Interception] [InterceptionManager.php:117] [internalFuncCallPreHook] preHook has let a Throwable to escape {"throwable":{"type":"TypeError","value_as_string":"TypeError: spl_object_id() expects parameter 1 to be object, resource given in \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlHandleWrappedTrait.php:103\nStack trace:\n#0 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlHandleWrappedTrait.php(103): spl_object_id(Resource id #358919)\n#1 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlHandleTracker.php(235): Elastic\\Apm\\Impl\\AutoInstrument\\CurlHandleWrapped->asInt()\n#2 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlHandleTracker.php(169): Elastic\\Apm\\Impl\\AutoInstrument\\CurlHandleTracker->assertCurlHandleInArgsMatches(Object(Elastic\\Apm\\Impl\\Util\\EnabledAssertProxy), 'curl_setopt_arr...', Array)\n#3 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlAutoInstrumentation.php(281): Elastic\\Apm\\Impl\\AutoInstrument\\CurlHandleTracker->preHook('curl_setopt_arr...', 3, Array)\n#4 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlAutoInstrumentation.php(115): Elastic\\Apm\\Impl\\AutoInstrument\\CurlAutoInstrumentation->createHandleTracker('curl_setopt_arr...', 3, Array)\n#5 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/CurlAutoInstrumentation.php(101): Elastic\\Apm\\Impl\\AutoInstrument\\CurlAutoInstrumentation->preHook('curl_setopt_arr...', 3, Array)\n#6 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/RegistrationContext.php(91): Elastic\\Apm\\Impl\\AutoInstrument\\CurlAutoInstrumentation->Elastic\\Apm\\Impl\\AutoInstrument\\{closure}(Array)\n#7 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/InterceptionManager.php(115): Elastic\\Apm\\Impl\\AutoInstrument\\RegistrationContext->Elastic\\Apm\\Impl\\AutoInstrument\\{closure}(NULL, Array)\n#8 \/opt\/elastic\/apm-agent-php\/src\/ElasticApm\/Impl\/AutoInstrument\/PhpPartFacade.php(164): Elastic\\Apm\\Impl\\AutoInstrument\\InterceptionManager->internalFuncCallPreHook(2, NULL, Array)\n#9 [internal function]: Elastic\\Apm\\Impl\\AutoInstrument\\PhpPartFacade::internalFuncCallPreHook(2, NULL, Resource id #949, Array)
```
Contributor guide
Assessment
This issue has not been assessed yet.