php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24112 php_admin_value defaults - open_basedir
Submitted: 2003-06-10 08:19 UTC Modified: 2005-01-31 23:12 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: pd at pauldemarco dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.2 OS: redhat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pd at pauldemarco dot com
New email:
PHP Version: OS:

 

 [2003-06-10 08:19 UTC] pd at pauldemarco dot com
This problem does not occur on 4.3.0, with the same configure line (any basic configuration will do).  Sadly, I cannot provide any real error information, as it is not crashing, but the behavior is fairly predictable.

I have a open_basedir setting in php.ini, confirmed via phpinfo(), its value is not important.  On each of the configured virtual hosts I have a different value using php_admin_value.  However, on some virtual hosts I turn safe_mode off using php_admin_flag and do not set an open_basedir value, so it should be using the php.ini setting.  Turning safe mode off is probably not relevant, but trying to provide any related information.

When requesting pages on that virtual host (the one with no overriding open_basedir setting, and safe mode off), the requests will randomly fail.  When checking the error log, it is a normal exit and php is logging that 'open_basedir restriction in effect ... '

The path that it provides as the active open_basedir value is not correct.  It in fact randomly changes to other virtual hosts settings.  It does not always fail, it may take 20 requests before it does (even a simple auto-refreshing page, will fail shortly with that error).

I believe there may be a bug in reverting to the default configuration value, and using an old value in memory.  I am using prefork in apache, so it would most likely have to be an uninitialized pointer to the same memory space, memory spaces for new forked processes should be repeatable.  

Well thats about all I can provide, it can be fixed by explicitly stating the open_basedir value in each virtual host (so ones where before I kept it at the default value, now explicitly set the default value).

I'm more than happy to follow any instructions to get further information on this, just not sure what to do as its not an actual crash or anything.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 18:13 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments
to the existing bug instead.

Thank you for your interest in PHP.

See bug #24282
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 11:01:31 2024 UTC