#41620 [NEW]: Can't pass VirtualDocumentRoot Vars
From: ruud at rb-sound dot nl
Operating system: FreeBSD
PHP version: 5.2.3
PHP Bug Type: Apache2 related
Bug description: Can't pass VirtualDocumentRoot Vars
Description:
------------
php_admin_value open_basedir /usr/local/apache/vhosts/%0/www/
The %0 only works on VirtualDocumentRoot. php doens't read the %0 value.
Reproduce code:
---------------
In this example i try to chroot php. So user's can only access there home
dir.
<VirtualHost *>
Use CanonicalName off # use the name from the Host: header instead of the
DNS name
VirtualDocumentRoot /usr/local/apache/vhosts/%0/www/public_html/
php_admin_value open_basedir /usr/local/apache/vhosts/%0/www/
<VirtualHost>
The %0 only works on VirtualDocumentRoot. php doens't read the %0 value.
Expected result:
----------------
php_admin_value open_basedir /usr/local/apache/vhosts/www.domain.tld/www/
--
Edit bug report at http://bugs.php.net/?id=41620&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41620&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41620&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41620&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41620&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41620&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41620&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41620&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41620&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41620&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41620&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41620&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41620&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41620&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41620&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41620&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41620&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41620&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41620&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41620&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41620&r=mysqlcfg
Thread (6 messages)
- ruud at rb-sound dot nl