xhprof
xhprof copied to clipboard
check on file exist for xhprof_urlSimilartor_include
So the goal here is to avoid having a fatal error if there's a specified value, but the path fails?
I'm quite torn. I'd really rather things failed loudly, rather than silently (imagine specifying the wrong path, expecting it to have worked, and getting nothing). But non-fatal errors are also super.
thoughts?
i don't want get fatal error when file not exists, because it crash whole application. though, you're right what silently ignore this error is not good. I think what warning trigger_error("File urlSimilartor {$similartorinclude} not exist", E_USER_WARNING) is better