Please help me, I have set up error logs via htaccess:
php_flag log_errors On
php_value error_log errors/log/errors_log.txt
php_flag display_errors On
php_value error_reporting 6135
It works fine, but there is a small problem, f.e. I have my own function, which is used nearly in all scripts on my web and inside this function happen this error:
[24-Apr-2012 23:33:11] PHP Warning: trim() expects parameter 1 to be string, array given in /path/public_html/req/functions.php on line 200
and now problem is I do not know in which script this error happen, it only shows the path, where function is declared, but do not show the way, where passing variable inside this function this error cause.
Is here any easy way how to show all paths for error?
Thanks in advance
In your error handling function you could use
debug_print_backtrace()ordebug_backtrace().