php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50548 error_reporting() behavior incorrectly documented
Submitted: 2009-12-21 21:30 UTC Modified: 2009-12-22 13:34 UTC
From: chealer at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: chealer at gmail dot com
New email:
PHP Version: OS:

 

 [2009-12-21 21:30 UTC] chealer at gmail dot com
Description:
------------
Description:
------------
error_reporting() has synopsis

int error_reporting  ([ int $level  ] )

and can be called without any argument, but then it doesn't behave according to the description :
error_reporting ? Sets which PHP errors are reported
http://ca2.php.net/manual/en/function.error-reporting.php

Instead, the error reporting level is left unchanged when calling error_reporting() (no argument).

"Get the current error_reporting level, optionally changing it" 
might fix, but I'm sure there is a better modification to make 
things crystal-clear.

This was originally reported in #49872.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-22 13:33 UTC] svn@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=292477
Log: Fixes #50548.
 [2009-12-22 13:34 UTC] degeberg@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 03:00:02 2026 UTC