From:             [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version:      4.2.2
PHP Bug Type:     PHP options/info functions
Bug description:  ini_get returns values from other vservers

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 [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
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 bug report at http://bugs.php.net/?id=21874&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21874&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21874&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21874&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21874&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21874&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21874&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21874&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21874&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21874&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21874&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21874&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21874&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21874&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21874&r=gnused

Reply via email to