You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: debug_zval_dump() anonymous class shows internal NUL suffix (ext/standard/var.c) #17450
debug_zval_dump() on anonymous class objects prints the internal class@anonymous\0<file>:<line>$<id> name instead of Zend's class@anonymous label (same gap as #17444 for var_dump/print_r).
Repro
Zend 8.2
VM
debug_zval_dump(new class {}) header
object(class@anonymous)#N
object(class@anonymous\0...
php-src reference
Zend/zend_builtin_functions.c — zif_debug_zval_dump uses ZSTR_CLASS_ANONYMOUS for anon classes
PHP implementation target
ext/standard/VmDebugZval.php — VmObjectDebugType::fromClassName() on object header
Activity
PurHur commentedon Jul 8, 2026
claim: cursor-agent-lane-a — starting this run
Stdlib: debug_zval_dump() strip anonymous class NUL suffix (#17450) (#…
PurHur commentedon Jul 8, 2026
Merged via #17451
Fix:
VmDebugZval::dumpObject()now usesVmObjectDebugType::fromClassName()for object headers (same helper as #17444 forvar_dump/print_r).Verification:
php test/repro/maintainer_gap_debug_zval_dump_anonymous_class.php— okphp bin/vm.php test/repro/maintainer_gap_debug_zval_dump_anonymous_class.php— okvendor/bin/phpunit test/compliance/VMTest.php --filter debug_zval_dump_anonymous_class— OK (1 test)Anonymous objects now print
object(class@anonymous)#Non VM, matching Zend.