View Issue Details

IDProjectCategoryView StatusLast Update
0001202XdebugUncategorizedpublic2015-11-10 22:28
Reportergcds Assigned Toderick  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx64OSMac OS XOS Version10.10.5
Product Version2.4.0beta1 
Fixed in Version2.4.0rc1 
Summary0001202: Anonymous classes are not handled properly while remote debugging
Description

Then trying to debug a file with anonymous classes. xdebug crashes with message:

PHP Fatal error: Class 'class@anonymous' not found in /Users/gcds/Projects/PHP/a.php on line 9
Fatal error: Class 'class@anonymous' not found in /Users/gcds/Projects/PHP/a.php on line 9
PHP Stack trace:

PHP 1. {main}() /Users/gcds/Projects/PHP/a.php:0
Call Stack:
0.1259 355144 1. {main}() /Users/gcds/Projects/PHP/a.php:0

Steps To Reproduce

<?php

$a = new class {
public function hello() {
echo 'Hello world';
}
};

$a->hello();

Additional Information

Breakpoint on last line

TagsNo tags attached.
Attached Files
xdebug.log (6,092 bytes)
Operating SystemMac OS X 10.10.5
PHP Version7.0.0rc6

Activities

gcds

2015-11-09 21:07

reporter   ~0003222

It works if there is no breakpoint

derick

2015-11-10 22:28

administrator   ~0003223

Fixed - thanks for the report!

Issue History

Date Modified Username Field Change
2015-11-09 20:47 gcds New Issue
2015-11-09 21:07 gcds Note Added: 0003222
2015-11-09 21:11 gcds File Added: xdebug.log
2015-11-10 22:18 derick Summary xdebug crashes then debugging code with anonymous classes => Anonymous classes are not handled properly while remote debugging
2015-11-10 22:28 derick Note Added: 0003223
2015-11-10 22:28 derick Status new => closed
2015-11-10 22:28 derick Assigned To => derick
2015-11-10 22:28 derick Resolution open => fixed
2015-11-10 22:28 derick Fixed in Version => 2.4.0rc1
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized