View Issue Details

IDProjectCategoryView StatusLast Update
0001202XdebugUncategorizedpublic2015-11-10 22:28
Reportergcds Assigned To 
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.
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!