#36257 [Com]: php ini master values are reset between vhosts
| From: | david_sitecon at hotmail dot com | Date: | Thu, 16 Feb 2006 09:44:35 +0000 |
| Subject: | #36257 [Com]: php ini master values are reset between vhosts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93319@lists.php.net to get a copy of this message | ||
ID: 36257
Comment by: david_sitecon at hotmail dot com
Reported By: cnovak at gmx dot net
Status: Feedback
Bug Type: *Configuration Issues
Operating System: Linux srv-01 2.6.12-vs2.0-gentoo
PHP Version: 4.4.2
New Comment:
We can't use 5.x yet either - is there a 4.4.x snapshot for this ?
Previous Comments:
------------------------------------------------------------------------
[2006-02-11 13:21:06] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2006-02-02 12:56:36] cnovak at gmx dot net
Q1) Server API: Apache 2, API 20020903
Q2) We can not try 5.1
------------------------------------------------------------------------
[2006-02-02 12:26:59] tony2001@php.net
What Server API are you using?
Did you try with 5.1.x ?
------------------------------------------------------------------------
[2006-02-02 12:23:52] cnovak at gmx dot net
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 this bug report at http://bugs.php.net/?id=36257&edit=1