View Issue Details

IDProjectCategoryView StatusLast Update
0002025XdebugStep Debuggingpublic2021-10-04 09:29
Reporterderick Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.1.0beta2 
Target Version3.1devFixed in Version3.1.0 
Summary0002025: Anonymous classes which extend are not detected as anonymous classes since PHP 8.0
Description

Xdebug has code to detect that a class name is that of an anonymous class. In PHP 7.4 and earlier, a check against /^class@anonymous/ worked, including for anonymous classes extending another class. Since PHP 8.0, this internal marker than changed to {parent-class}@anonymous, thwarting my check.

TagsNo tags attached.
Operating System
PHP Version8.0.5-8.0.9

Activities