欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

Drupal 6兼容PHP 5.4,5.5,5.6 Drupal 6 compatibiity with PHP 5.4, 5.5, 5.6 error version 版本 报错 错误 隐藏 错误 隐藏 报告 不显示在屏幕上 有大用 有大大用 有大大大用

    $types = array(1 => 'error', 2 => 'warning', 4 => 'parse error', 8 => 'notice', 16 => 'core error', 32 => 'core warning', 64 => 'compile error', 128 => 'compile warning', 256 => 'user error', 512 => 'user warning', 1024 => 'user notice', 2048 => 'strict warning', 4096 => 'recoverable fatal error');

如果您考虑升级到PHP 5.5 / 5.6或更高版本,则模块
https://www.drupal.org/project/___drupal_php_strict_suppress可能有助于抑制多余错误

Prevent the display of PHP's strict warnings with the Disable Messages module

// 好像下面的语句 不管是设在 index.php  setting.php 都不起作用
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);

我最后 在
/admin/settings/error-reporting 里面进行了处理



普通分类: