zend 框架 - error_reporting - 空白页
如果错误出现在 bootstrap
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) 中
[development : production]
phpSettings.error_reporting = E_ALL^E_NOTICE
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
,zend 框架不会显示任何错误报告(空白页) ,但如果我犯了一些错误(忘记了;),我会得到空白页面而不是
测试过的 一些错误报告 Zend 框架 1.8/1.11 Apache/2.2.16 (Debian) PHP/5.3.5 ZendServer/5.0
zend framework wont show any error report (blank page) if error is in bootstrap
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: (in htaccess set ENV to development)
[development : production]
phpSettings.error_reporting = E_ALL^E_NOTICE
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1
and still if i make some error (forget ; ) i get blank page instead of some error report
tested on
ZendFramework 1.8/1.11
Apache/2.2.16 (Debian)
PHP/5.3.5 ZendServer/5.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你应该以 zend 框架的方式进行,通过在 youproj/application/configs/application.ini 中设置它
you should do it zend framework's way, by setting it in youproj/application/configs/application.ini