php_gdb: Fix missing casts in ZendAstPrettyPrinter (#17786)

Fixes php/php-src#17782
This commit is contained in:
Tim Düsterhus 2025-02-13 17:19:47 +01:00 committed by GitHub
parent 6e3185049a
commit 55994f83e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -179,12 +179,10 @@ class ZendAstPrettyPrinter(gdb.printing.PrettyPrinter):
if int(c) != 0:
c = c.dereference()
yield ('child[%d]' % i, c)
elif field.name == 'name':
yield (field.name, format_zstr(val[field.name]))
elif field.name == 'val':
yield (field.name, ZvalPrettyPrinter(val[field.name]).to_string())
else:
yield (field.name, format_nested(self.val[field.name]))
yield (field.name, format_nested(val[field.name]))
def is_special(self):
special_shift = 6 # ZEND_AST_SPECIAL_SHIFT