#35048 [Opn]: parse_ini_file() influenced by putenv() in special situation
ID: 35048 Updated by: [EMAIL PROTECTED] Reported By: liber at iproom dot com Status: Open Bug Type: *General Issues Operating System: Windows XP PHP Version: 5CVS-2005-11-01 (snap) New Comment: What is your default TZ and what TZ are you trying to set? Previous Comments: [2005-11-01 17:27:37] liber at iproom dot com I have try the latest PHP version (5.1.0 RC 5-dev) The situation is the same. Only if I disable the putenv command to stop put 'TZ' data, then everything is normal. When I re-enable to put 'TZ' by putenv, the error occur again. And I forgot to say, additional, the apache2 will crash with this error sometimes. [2005-11-01 14:27:35] [EMAIL PROTECTED] 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 [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=35048edit=1
#35048 [Opn]: parse_ini_file() influenced by putenv() in special situation
ID: 35048 User updated by: liber at iproom dot com Reported By: liber at iproom dot com Status: Open Bug Type: *General Issues Operating System: Windows XP PHP Version: 5CVS-2005-11-01 (snap) New Comment: The Apache2 crash with follow messages: Application Failure Apache.exe 2.0.53.0 in php5ts.dll 5.1.0.0 at offset 000ab595 Previous Comments: [2005-11-01 17:27:37] liber at iproom dot com I have try the latest PHP version (5.1.0 RC 5-dev) The situation is the same. Only if I disable the putenv command to stop put 'TZ' data, then everything is normal. When I re-enable to put 'TZ' by putenv, the error occur again. And I forgot to say, additional, the apache2 will crash with this error sometimes. [2005-11-01 14:27:35] [EMAIL PROTECTED] 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 [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=35048edit=1