how repremand line array controlling trigger_error php?


i am controlling trigger_error "throw" errors tradition class. problem trigger_error prints out line array where trigger_error called. example, given following code:



01    <?php
02 category exam {
03 duty doaction() {
04 $this->dosubaction();
05 }
06
07 duty dosubaction() {
08 if(true)
09 trigger_error('custom error', e_user_warning);
10 }
11 }
12
13 $var = new test();
14 $var->doaction();
15 ?>


php imitation out following:




warning: tradition blunder test.php line 9




how php relapse line where doaction() duty called (the slight called outmost class, ignoring calls finished internally) follows?




warning: tradition blunder test.php line 14




edit: run-down instance something bit closer i'm perplexing achieve.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?