View Issue Details

IDProjectCategoryView StatusLast Update
0001150XdebugUncategorizedpublic2017-03-19 22:17
Reporterflip101 Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionwon't fix 
OSWindowsOS Version7 64bits 
Summary0001150: Traces show wrong filenames
Description

This issue here https://github.com/jeromemacias/Silex-Debug/issues/5 shows trace:

( ! ) Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot override frozen service "data_collector.templates".' in vendor\pimple\pimple\src\Pimple\Container.php on line 76
( ! ) RuntimeException: Cannot override frozen service "data_collector.templates". in vendor\pimple\pimple\src\Pimple\Container.php on line 76
Call Stack

Time Memory Function Location

1 0.0000 233856 {main}( ) ..\index.php:0
2 0.0400 766208 Silex\Application->register( ) ..\index.php:72
3 0.0400 766288 Pimple\Container->register( ) ..\Application.php:130
4 0.0400 766360 Silex\Provider\DebugServiceProvider->register( ) ..\Container.php:273
5 0.0410 775408 Pimple\Container->offsetSet( ) ..\Container.php:36

But there is really nothing interesting on container.php line 36 https://github.com/silexphp/Pimple/blob/52f5d0969c998aa5ca7156e6ffb45eb610e235dc/src/Pimple/Container.php#L36

This should be DebugServiceProvider.php line 36 https://github.com/jeromemacias/Silex-Debug/blob/ef05e5dbfeb3a3d8a3bb5c6e5756768f92688075/DebugServiceProvider.php#L36

This is the trace with xdebug disabled:

<br />
<b>Fatal error</b>: Uncaught exception 'RuntimeException' with message 'Cannot override frozen service "data_collector.templates".' in vendor\pimple\pimple\src\Pimple\Container.php:76
Stack trace:
#0 vendor\jeromemacias\silex-debug\DebugServiceProvider.php(36): Pimple\Container->offsetSet('data_collector....', Array)
#1 vendor\pimple\pimple\src\Pimple\Container.php(273): Silex\Provider\DebugServiceProvider->register(Object(Silex\Application))
0000002 vendor\silex\silex\src\Silex\Application.php(130): Pimple\Container->register(Object(Silex\Provider\DebugServiceProvider), Array)
0000003 web\index.php(72): Silex\Application->register(Object(Silex\Provider\DebugServiceProvider), Array)
0000004 {main}
thrown in <b>vendor\pimple\pimple\src\Pimple\Container.php</b> on line <b>76</b><br />

You can see PHP has it right and connects line 36 to the right file

TagsNo tags attached.
Attached Files
xdebug-1150.zip (1,027 bytes)
Operating System
PHP Version5.6.0-5.6.4

Relationships

duplicate of 0000893 resolvedderick Callstack invalid when __autoload initiated from class method 

Activities

derick

2015-05-12 21:53

administrator   ~0003080

Can you make a (short) reproducible case for me?

flip101

2015-05-12 22:17

reporter   ~0003081

I will try ... but it will take some time. Thank you for looking into this. I'm not sure if i can edit the issue and add the test case in the reproduce field..

derick

2015-05-12 22:48

administrator   ~0003082

That's ok - just add it as a comment, or attach files. Or, if that doesn't work - let me know and we'll work something out.

derick

2015-05-30 20:03

administrator   ~0003099

Did you have time to make a shorter case?

flip101

2015-06-06 19:50

reporter   ~0003110

My main desktop was broken (BSOD) and didn't get around to fix it quickly. Test case attached as zip.

derick

2016-12-03 13:17

administrator   ~0003878

I can reproduce that with your test case, but only for PHP 5.5 and 5.6, and no longer with 7.0 or 7.1.

(Sorry for the wait).

derick

2017-03-19 22:17

administrator   ~0004238

This is indeed a bug in Xdebug with PHP 5, but it works fine with PHP 7.0 and 7.1. As this is not a critical bug, I won't be fixing it.

This is also a duplicate of 0000893.

Issue History

Date Modified Username Field Change
2015-05-12 21:19 flip101 New Issue
2015-05-12 21:53 derick Note Added: 0003080
2015-05-12 21:53 derick Assigned To => derick
2015-05-12 21:53 derick Status new => feedback
2015-05-12 22:17 flip101 Note Added: 0003081
2015-05-12 22:17 flip101 Status feedback => assigned
2015-05-12 22:48 derick Note Added: 0003082
2015-05-30 20:03 derick Note Added: 0003099
2015-05-30 20:03 derick Status assigned => feedback
2015-06-06 19:49 flip101 File Added: xdebug-1150.zip
2015-06-06 19:50 flip101 Note Added: 0003110
2015-06-06 19:50 flip101 Status feedback => assigned
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)
2016-12-03 13:17 derick Note Added: 0003878
2016-12-03 13:17 derick Status assigned => confirmed
2017-03-19 22:17 derick Note Added: 0004238
2017-03-19 22:17 derick Relationship added duplicate of 0000893
2017-03-19 22:17 derick Status confirmed => resolved
2017-03-19 22:17 derick Resolution open => won't fix
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized