php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16138 .htaccess / httpd.conf and error_reporting constants
Submitted: 2002-03-18 04:24 UTC Modified: 2013-10-28 07:10 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: goba@php.net Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.1.0 OS: win2k
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: goba@php.net
New email:
PHP Version: OS:

 

 [2002-03-18 04:24 UTC] goba@php.net
Let's put this into a .htaccess (I guess it is the same inside httpd.conf, but not tried):

php_value error_reporting E_ALL

Run the following PHP code in the same dir:

<?php 
echo error_reporting();
phpinfo();
?>

The echo will print out zero, but PHPinfo()
will present the string "E_ALL" as the local
value.

Error reporting constants should be handled
in .htaccess files IMHO...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-07 04:15 UTC] goba@php.net
As this was changed to a feature request, does that mean, that the bugreport part is solved? That error_reporting() now returns the REAL error reporting value??
 [2002-06-07 04:19 UTC] goba@php.net
Just discard my prev message, I am not completely OK now.....
 [2003-04-09 11:31 UTC] philip@php.net
On a related note, this "non-feature" has been documented for about six months now.
 [2013-10-28 07:10 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 07:10 UTC] krakjoe@php.net
This is fixed, closing the bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 22:01:27 2025 UTC