php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40779 error_reporting values in manuals
Submitted: 2007-03-11 22:30 UTC Modified: 2007-03-23 14:55 UTC
From: h dot sim at econ dot usyd dot edu dot au Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
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: h dot sim at econ dot usyd dot edu dot au
New email:
PHP Version: OS:

 

 [2007-03-11 22:30 UTC] h dot sim at econ dot usyd dot edu dot au
Description:
------------
E_ALL value is 6143 in the following URL
http://au.php.net/manual/en/function.error-reporting.php

E_ALL value is 2047 in the following URLs
http://au.php.net/manual/de/function.error-reporting.php
http://au.php.net/manual/sk/function.error-reporting.php
http://au.php.net/manual/nl/function.error-reporting.php
http://au.php.net/manual/es/function.error-reporting.php
http://au.php.net/manual/pt_BR/function.error-reporting.php

Which one is correct?

Reproduce code:
---------------
N/A

Expected result:
----------------
N/A

Actual result:
--------------
N/A

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-12 09:18 UTC] rquadling@php.net
<?php var_export(E_ALL); ?>

produces 6143 on PHP 5.2.2-dev (cli) (built: Mar  9 2007 12:07:16)

on PHP 6.0.0-dev (cli) (built: Jan  8 2007 10:28:23), the value is 8191

These 2 values are accurate with regards to the documentation (E_STRICT was added in PHP6, so 6143 + 2048 = 8191).

There are 2 issues here.

1 - The E_ALL encompasses new errorlevels as new versions of PHP are developed.
2 - Documentation is not always uptodate outside of the English version.

In this instance, the non-english pages have not been updated with the new errorlevels.
 [2007-03-12 09:22 UTC] rquadling@php.net
2047 is accurate for PHP V5.1x and lower.

 [2007-03-12 22:41 UTC] h dot sim at econ dot usyd dot edu dot au
Thanks.

The E_ALL value is listed as 2048 only for PHP 4 and PHP 5 in the following manual page.
http://au.php.net/manual/en/function.error-reporting.php

Once again, thank you.
 [2007-03-23 14:55 UTC] vrana@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.

I fixed it in de/, it/ and pt_BR/, others were just built from an old English version.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 16:01:34 2025 UTC