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
 [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-2019 The PHP Group
All rights reserved.
Last updated: Sat May 25 21:01:27 2019 UTC