php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11891 error_reporting option broken/changed
Submitted: 2001-07-04 16:36 UTC Modified: 2001-12-13 06:26 UTC
From: vejrum at doek dot dk Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.6 OS: Linux (Cobalt RaQ3)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vejrum at doek dot dk
New email:
PHP Version: OS:

 

 [2001-07-04 16:36 UTC] vejrum at doek dot dk
With PHP 4.0.1 this worked fine - warnings for undefined variables were not displayed:
error_reporting = E_ALL & ~E_NOTICE

With PHP 4.0.6 this does not seem to work anymore - warnings for undefined variables are now displayed - and same result with:
error_reporting = E_ALL & ~E_NOTICE

I only seem to be able to get rid of the warnings for undefined variables by not displaying errors at all:
display_errors  =       Off

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-04 16:38 UTC] vejrum at doek dot dk
Argh - "and same result with:" should be:
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

 [2001-11-18 19:50 UTC] sniper@php.net
Are you sure your php.ini file is read by PHP ?
Try setting the error_reporting in the script:

<?php

error_reporting(E_ALL & ~E_NOTICE);

echo $test; 

?>

 [2001-12-13 06:26 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC