#35048 [Opn->Fbk]: parse_ini_file will be influenced by putenv in special situation

From: Date: Tue, 01 Nov 2005 13:27:36 +0000
Subject: #35048 [Opn->Fbk]: parse_ini_file will be influenced by putenv in special situation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-87328@lists.php.net to get a copy of this message
ID: 35048 Updated by: sniper@php.net Reported By: liber at iproom dot com -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: Windows XP PHP Version: 5.0.5 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-11-01 13:39:37] liber at iproom dot com 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 this bug report at http://bugs.php.net/?id=35048&edit=1

« previous php.bugs (#87328) next »