ID: 37887 User updated by: petrkuzel at eurofins dot com Reported By: petrkuzel at eurofins dot com Status: Open Bug Type: *Configuration Issues Operating System: Windows PHP Version: 5.1.4 New Comment:
My partial conclusion. If phpinfo() states as used php.ini "c:\windows" it in fact does NOT use any php.ini. When is uses php.ini from C:\windows it is reported as "c:\windows\php.ini" It would be nice if phpinfo() returned what locations were probed for the php.ini. Previous Comments: ------------------------------------------------------------------------ [2006-06-22 14:29:59] petrkuzel at eurofins dot com OK it looks like PHP is written in restart whole OS style. After restarting OS php.ini from C:\windows was picked. I do not undertand why (there is one in php dir and one pointed by Windows registry key) but at least I know where to put my php.ini. In spite of fact I hate it, I can use system global. Now I can get to point, Mantisbt.org. ------------------------------------------------------------------------ [2006-06-22 14:07:23] petrkuzel at eurofins dot com I tried to set HKEY_LOCAL_MACHINE/SOFTWARE/PHP/IniFilePath in registry, but it's also ignored (based on missing the header mark and phpinfo() output). Still empty result. It's after IIS restart (from IIS console). ------------------------------------------------------------------------ [2006-06-22 13:20:16] petrkuzel at eurofins dot com Description: ------------ I want to use mssql extension but I'm not able to make PHP use my php.ini file that contains declaration. 5.1.4 is manually installed on Windows with IIS 5.1. Reproduce code: --------------- <?php echo "INI = " . get_cfg_var("cfg_file_path") . "<br>"; echo "Prepend = " . ini_get("auto_prepend_file") . "<br>"; phpinfo(); ?> Expected result: ---------------- Instead of expected: INI = c:\app\php\ Prepent = c:\app\php\marker.txt Actual result: -------------- Returns: INI = Prepend = <the info tables> reporting ini path as "c:\windows" (I put there one with 'auto_prepend_file marker' but it's not picked up), extension_dir as "c:\php5", consequently no extensions discovered.... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37887&edit=1