Setting error_reporting value in php.ini

Solution Verified - Updated -

Issue

  • Unexpected error_reporting value rerturned by phpinfo()

  • Setting error_reporting to E_ALL & ~E_NOTICE returns a value other than the expected value of 6127:

[root@host]# echo "<?php phpinfo(); ?>" | php | grep error_reporting
error_reporting => 30719 => 30719
  • How can I change the numerical value of error_reporting shown in phpinfo()?

Environment

  • Red Hat Enterprise Linux 6
  • PHP 5.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.