反正有禁用绝对path出现与PHP错误。
即
第179行的/domain.com/www/user/html/index.php
我不想让PHP显示“/domain.com/www/user/html”。 只有文件名应该与行号一起出现。
你可以设置一个自定义的error handling程序来按照你想要的方式格式化消息。 如果它是一个生产框,你可能不应该有display_errors。 使用报告日志文件。
http://php.net/manual/en/function.set-error-handler.php