php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18026 php_admin_value not working
Submitted: 2002-06-27 16:52 UTC Modified: 2002-06-28 05:19 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: tozz at kijkt dot tv Assigned: derick (profile)
Status: Not a bug Package: Apache related
PHP Version: 4.2.1 OS: Linux (rh 7.1)
Private report: No CVE-ID: None
 [2002-06-27 16:52 UTC] tozz at kijkt dot tv
Hello,

In my php.ini I've set 'display_errors = Off'. Also safe mode is off by default.

In my vhosts (<VirtualHost ip.here>) I add php_admin_value safe_mode 1 for each vhost that has to be restricted with safemode restrictions. This works perfect.

However, when I set 'display_errors = On', it doesn't work. Output is not beeing sent to the browser's output.

I dont know if this is by design, but it looks like a bug to me. I'm unable to overrule this setting in httpd.conf while I can overrule other configuration options.

Bye
Tozz

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-27 19:31 UTC] sniper@php.net
Where do you set display_errors=On? in php.ini??
Works fine here with latest CVS at least..

And what apache version?

--Jani

 [2002-06-28 05:07 UTC] tozz at kijkt dot tv
Hey

Yes in php.ini it works fine. But I am unable to overrule this setting in apache.conf

E.g. I normally use this for each vhost:

<VirtualHost 123.123.123.123>
        DocumentRoot /website
        ServerName www.domain.com
        ServerAlias domain.com
        php_admin_value safe_mode 1
        php_admin_value open_basedir /website
</VirtualHost>

This works fine, but if I add
php_admin_value display_errors on

This doesn't work. And it works for all the other settings i've tried.
 [2002-06-28 05:19 UTC] sniper@php.net
Clearly an user error, it should be:

php_admin_value display_errors 1 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 23:01:28 2024 UTC