From:             liber at iproom dot com
Operating system: Windows XP
PHP version:      5.0.5
PHP Bug Type:     *General Issues
Bug description:  parse_ini_file will be influenced by putenv in special 
situation

Description:
------------
First, var_dump the result read by parse_ini_file is:
array (
  'dbHost' => 'localhost',
  'dbUser' => 'mmcwebapp',
  'dbPassword' => '',
  'dbName' => 'faraday',
)

but i don't know why, everytime after
the command: putenv("TZ=");

the result will change as follow:

array (
  'dbHost' => 'localhost',
  'dbUser' => 'mmcwebapp',
  'dbPassword' => '',
  'faradayc8XC9-2' => 'faraday',
)

I can't not figure out where problem is,
then I use Zend Studio and add a watch like this

var_export(parse_ini_file(DBX_CONFIG_FILE),1)

the DBX_CONFIG_FILE is defined as like as c:\a.ini

then I saw the changing in debug mode(step by step).


-- 
Edit bug report at http://bugs.php.net/?id=35048&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35048&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35048&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35048&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35048&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35048&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35048&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35048&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35048&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35048&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35048&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35048&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35048&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35048&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35048&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35048&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35048&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35048&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35048&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35048&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35048&r=mysqlcfg

Reply via email to