#21874 [Opn->Fbk]: ini_get returns values from other vservers
| From: | iliaa@php.net | Date: | Tue, 28 Jan 2003 17:36:40 +0000 |
| Subject: | #21874 [Opn->Fbk]: ini_get returns values from other vservers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31475@lists.php.net to get a copy of this message | ||
ID: 21874
Updated by: iliaa@php.net
Reported By: mitch@webcob.com
-Status: Open
+Status: Feedback
Bug Type: PHP options/info functions
Operating System: FreeBSD
PHP Version: 4.2.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-01-25 04:13:56] mitch@webcob.com
I have a file:
<?php
print ini_get('upload_tmp_dir') . '<br>';
?>
And I have multiple virtual host specifications like:
{Domain names and file paths have been changed to protech the
innocent...}
<VirtualHost site1.com>
ServerName myapp.site1.com
ServerAdmin webmaster@site1.com
DocumentRoot /home/mainapplication
php_admin_value upload_tmp_dir /home/client1/tmp
php_admin_value error_log /home/client1/log
php_value error_reporting 7
php_flag display_errors On
php_flag log_errors On
php_flag register_globals on
php_flag display_errors off
</VirtualHost>
<VirtualHost site2.com>
ServerName myapp.site2.com
ServerAdmin webmaster@site2.com
DocumentRoot /home/mainapplication
php_admin_value upload_tmp_dir /home/client2/tmp
php_admin_value error_log /home/client2/log
php_value error_reporting 7
php_flag display_errors On
php_flag log_errors On
php_flag register_globals on
php_flag display_errors off
</VirtualHost>
N.B. When using PHPA, the problem is incredibly obvious (changes
continuously), however with it removed, and reloading the page HUNDREDS
of times, I saw this happen twice.
The only values displayed are those of ACTIVE virtual servers... at
least that is what seems to be happening.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21874&edit=1