Skip to content

Commit

Permalink
Fix fatal error when reading uninit $meta on a span (#2790)
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
  • Loading branch information
bwoebi authored Aug 16, 2024
1 parent e29a119 commit d75a84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions appsec/src/extension/ddtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,14 @@ static zval *_get_span_modifiable_array_property(
{
#if PHP_VERSION_ID >= 80000
zval *res =
zobj->handlers->get_property_ptr_ptr(zobj, propname, BP_VAR_R, NULL);
zobj->handlers->get_property_ptr_ptr(zobj, propname, BP_VAR_IS, NULL);
#else
zval obj;
ZVAL_OBJ(&obj, zobj);
zval prop;
ZVAL_STR(&prop, propname);
zval *res =
zobj->handlers->get_property_ptr_ptr(&obj, &prop, BP_VAR_R, NULL);
zobj->handlers->get_property_ptr_ptr(&obj, &prop, BP_VAR_IS, NULL);

#endif

Expand Down

0 comments on commit d75a84d

Please sign in to comment.