Posted by maxlego on 09/28/28 11:18
Hi!
Im trying to get the line number where the method is called not where
the error occured in the class. is it possible?
to illustrate what i mean:
class foo
{
function doSmthn($args)
{
if ($this->notValid($args))
$this->errLines[] = __LINE__; // line(6)
}
}
$o = new foo();
$o->doSmthn(array()); //line(11)
I'd like to get value to errLines 11 not 6
--
Markko
Navigation:
[Reply to this message]
|