|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46244 Virtual host specific magic_quotes_gpc setttings changing randomly
Submitted: 2008-10-06 17:57 UTC Modified: 2008-10-07 12:23 UTC
From: jeremy at hooks dot me dot uk Assigned:
Status: No Feedback Package: PHP options/info functions
PHP Version: 5.2.6 OS: openSUSE 10.2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-10-06 17:57 UTC] jeremy at hooks dot me dot uk
First of all, forgive me if I already posted this bug today, my browser crashed earlier and I am not sure if I posted before the crash.

The problem I am having appears very similar to - which apparently is fixed

I have several virtual hosts, some of which have "php_admin_flag magic_quotes_gpc off" in their Apache config.  Others have "php_admin_flag magic_quotes_gpc On" in their config.

If I restart Apache and immediately browse one of the servers with magic quotes set to on, it will be on, however if i go back later (possibly after someone has browsed one of the other virtual hosts), it will be turned off.

The main difference between this and 43677 is that it relates to php_[admin_]flag rather than php_[admin_]value.  Also 43677 reportedly (according to one post) only occurs if you mix php_admin_value and php_value for the same ini-setting - I am only using php_admin_value for the magic_quotes_gpc setting.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-07 08:37 UTC] jeremy at hooks dot me dot uk

Thank you for your response, unfortunately it is not practical for me to install CVS-snapshot on this server as it is a production server.  If I get chance I will try to see if I can recreate the bug on my openSUSE 11 laptop, using the CVS-snapshot.

BTW, this bug isn't a major problem for me, it just means I get warnings from Joomla, which could be avoided. I noticed this bug in 5.2.5 but I thought when I upgraded to 5.2.6 it would be fixed that it would be fixed by the solution to 43677 (SUSE only released an update to 5.2.6 two weeks ago (for 10.2 at least)).  However, I felt I ought to report it in case it affects anything more important than magic_quotes_gpc or someone who relies on magic_quotes_gpc.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 10:01:30 2024 UTC