File1.php
CODE
1: function myfunction()
2: {
3: trigger_error("blah error'", E_USER_WARNING);
4: }
2: {
3: trigger_error("blah error'", E_USER_WARNING);
4: }
File2.php
CODE
1: require_once("File1.php");
2: myfunction();
2: myfunction();
Now trigger error returns the error is in File1.php and on line 3. The function called is actually in File2.php and on line 2. Is there anyway to make trigger_error output information where the function was called and not on trigger_error?