php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7010 error_reporting(0);
Submitted: 2000-10-04 06:02 UTC Modified: 2000-10-28 23:37 UTC
From: joel dot jacobson at mobigym dot se Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.2 OS: Linux 2.4.0-test7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 - 18 = ?
Subscribe to this entry?

 
 [2000-10-04 06:02 UTC] joel dot jacobson at mobigym dot se
Why does the following example produce an error message that is displayed in the web browser?
<?php
error_reporting(0);
$test = 1/0;
?>

But no error message is shown when I try $test = NO_SUCH_CONSTANT;

The division by zero error is not displayed if I set display_errors to "Off" in php.ini. But I think that should be the same as error_reporting(0);, why isn't it?

Thanks in advance.

/Joel Jacobson

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-05 17:45 UTC] stas@php.net
Could not reporduce this in 4.0.3rc1. Which error is displayed?
 [2000-10-28 23:37 UTC] sniper@php.net
No feedback. And please update to PHP4.0.3pl1 and reopen
this bug report if problem still exists with it.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC