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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 00:01:22 2020 UTC