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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content