From: cnovak at gmx dot net
Operating system: Linux srv-01 2.6.12-vs2.0-gentoo
PHP version: 4.4.2
PHP Bug Type: *Configuration Issues
Bug description: php ini master values are reset between vhosts
Description:
------------
PHI ini master values are not persistet between Apache virutal hosts.
1. php.ini setting mbstring.func_overload = 0
2. vhost www.example.com sets mbstring.func_overload = 6
3. after serving vhost www.example.com all other vhosts AND the doc root
inherit the individual mbstring.func_overload = 6 value.
<VirtualHost 192.168.4.48:443>
ServerName www.infocenter.example.com.intra
SSLEngine on
SSLCertificateFile
/etc/apache2/ssl/www.infocenter.example.com.intra/www.infocenter.example.com.pem
SSLCertificateKeyFile
/etc/apache2/ssl/www.infocenter.example.com.intra/www.infocenter.example.com.pem
SSLCACertificateFile
/etc/apache2/ssl/www.infocenter.example.com.intra/www.infocenter.example.com.pem
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
RewriteRule /\.htaccess - [F]
php_admin_value magic_quotes_gpc 0
php_admin_value upload_tmp_dir
/www/customers/example/infocenter.example.com.intra/local/tmp
php_admin_value session.save_path
/www/customers/example/infocenter.example.com.intra/local/var/session
php_value mb_internal_encoding UTF-8
php_value mbstring.func_overload 6
php_value include_path "include"
<Files ~ "\.ini$">
Order deny,allow
Deny from all
</Files>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
DocumentRoot
/www/customers/example/infocenter.example.com.intra/php-bin/
Alias /stats /www/customers/example/infocenter.example.com.intra/stats
CustomLog
/www/customers/example/infocenter.example.com.intra/log/apache-www-actual.log
combined
ErrorLog
/www/customers/example/infocenter.example.com.intra/log/apache-error-actual.log
</VirtualHost>
Reproduce code:
---------------
1. vhost.conf: php_value mbstring.func_overload 6
2. php.ini: mbstring.func_overload = 0
Expected result:
----------------
1. www.infocenter.example.com phpinfo mbstring.func_overload 6 0
2. www.docroot.com phpinfo mbstring.func_overload 0 0
Actual result:
--------------
1. www.example.com phpinfo mbstring.func_overload 6 6
2. www.docroot.com phpinfo mbstring.func_overload 6 6
--
Edit bug report at http://bugs.php.net/?id=36257&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36257&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36257&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36257&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36257&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36257&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36257&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36257&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36257&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36257&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36257&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36257&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36257&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36257&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36257&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36257&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36257&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36257&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36257&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36257&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36257&r=mysqlcfg