| Anonymous | Login | Signup for a new account | 2013-05-23 15:24 BST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0000642 | Xdebug | Debug client (console) | public | 2010-11-25 07:58 | 2011-01-03 22:54 | |||
| Reporter | the-ninth | |||||||
| Assigned To | derick | |||||||
| Priority | normal | Severity | major | Reproducibility | always | |||
| Status | resolved | Resolution | fixed | |||||
| Platform | Intel | OS | Windows | OS Version | 7 | |||
| Product Version | 2.1.0 | |||||||
| Target Version | Fixed in Version | |||||||
| Summary | 0000642: No line number for offsetGet and offsetSet | |||||||
| Description | I am using Xdebug as profiler and when using the magic methods offsetGet and offsetSet, the result is displayed but without a line number. I am using WAMP as server and WinCacheGrind to display the results. Not sure about the severity but my code makes heavy use of these methods (I am using the Doctrine ORM framework) and for me it is therefore a major issue. | |||||||
| Steps To Reproduce | Execute and profile the following script: <?php class Test implements ArrayAccess { private $container = array(); public function offsetSet($offset, $value) { $this->container[$offset] = $value; } public function offsetExists($offset) { return isset($this->container[$offset]); } public function offsetUnset($offset) { unset($this->container[$offset]); } public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } } $test = new Test(); $test['test'] = 'test'; echo $test['test']; ?> | |||||||
| Tags | No tags attached. | |||||||
| Operating System | ||||||||
| PHP Version | 5.3.0 | |||||||
| Attached Files | ||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-11-25 07:58 | the-ninth | New Issue | |
| 2011-01-03 22:54 | derick | Note Added: 0001630 | |
| 2011-01-03 22:54 | derick | Status | new => resolved |
| 2011-01-03 22:54 | derick | Resolution | open => fixed |
| 2011-01-03 22:54 | derick | Assigned To | => derick |
| Copyright © 2000 - 2011 MantisBT Group |