的php.ini:
error_reporting = E_ALL
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 0
report_zend_debug = 1
error_log = "/usr/local/zend/var/log/php.log"
bootstrap.php中:
error_reporting(E_ALL );
ini_set('display_startup_errors', 1);
ini_set('display_errors', 1);
application.ini :(在htaccess中将ENV设置为开发)
[development : production]
phpSettings.error_reporting = E_ALL^E_NOTICE
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
仍然如果我犯了一些错误(忘了;)我得到空白页而不是一些错误报告
测试了 ZendFramework 1.8 / 1.11 Apache / 2.2.16(Debian) PHP / 5.3.5 ZendServer / 5.0
答案 0 :(得分:1)
你应该通过在youproj / application / configs / application.ini中设置它来实现它的框架方式
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1