View Issue Details

IDProjectCategoryView StatusLast Update
0000728XdebugUncategorizedpublic2012-04-28 22:18
Reportersebastian Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformIrrelevantOSIrrelevantOS VersionIrrelevant
Product Version2.2dev 
Target Version2.2.0Fixed in Version2.2.0 
Summary0000728: Profiler reports __call() invocations confusingly/wrongly
Description

I find the way that Xdebug reports method calls that are handled by __call() confusing.

For my http://github.com/thePHPcc/bankaccount example (htdocs/index.php) it generates

fl=php:internal
fn=php::Request->getServer
10 31
cfl=/usr/local/src/bankaccount/src/framework/Request.php
cfn=Request->__call
calls=1 0 0
10 1713

This means that the Request::getServer() method, which does not exist and calls to which are handled by Request::__call(), are displayed as PHP-internal functions. This is what confuses me.

Request->getServer would be correct.

TagsNo tags attached.
Operating System
PHP Version5.4-dev

Activities

sebastian

2011-10-05 21:40

reporter   ~0001834

Instead of reporting just Request->getServer it might make sense to report both Request->getServer and Request->__call (the former calling the latter).