note 97251 deleted from language.oop5.overloading by degeberg
| From: | degeberg@php.net | Date: | Sun, 11 Apr 2010 09:53:35 +0000 |
| Subject: | note 97251 deleted from language.oop5.overloading by degeberg | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168119@lists.php.net to get a copy of this message | ||
Note Submitter: te at sky-networx dot de
----
If you use debug_backtrace() in a __call method, there missing the line and file info.
<?php
class Sample
{
function __call($sMethod, $aArguments)
{
$aBacktrace = debug_backtrace();
print $aBacktrace[0]['file']; // missing
print $aBacktrace[0]['line']; // missing
}
}
?>