From: ksingla Operating system: Windows PHP version: 5.2.13 Package: *Configuration Issues Bug Type: Feature/Change Request Bug description:Add sapi binary location to php ini search path
Description: ------------ PHP searches php.ini in the binary location which is retrieved using GetModuleFileName (first parameter to GetModuleFileName is NULL). This will return path to current *executable* which won't be path to php sapi binary in case of dlls. For IIS, location of w3wp.exe which is %windir%\system32\inetsrv\ will be added to php ini search path. Is this intentional? Can we change this code to make it look for php.ini in the folder where php sapi binary is present? Without this fix, users running non-cgi SAPIs are required to set PHPRC environment variable or IniFilePath registry key to make PHP pick php.ini in the php install folder. If this bug is fixed, windows installer can stop setting PHPRC path to [installdir] and will be able to support side-by-side (SxS) install of PHP 5.2 and PHP 5.3. For installer to support SxS install, this change is required in PHP 5.2 and PHP 5.3. If we are worried about this being breaking change, we can just *add* php sapi binary location to php ini search path. -- Edit bug report at http://bugs.php.net/bug.php?id=51536&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51536&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51536&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51536&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51536&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51536&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51536&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51536&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51536&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51536&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51536&r=support Expected behavior: http://bugs.php.net/fix.php?id=51536&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51536&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51536&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51536&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51536&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51536&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51536&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51536&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51536&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51536&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51536&r=mysqlcfg
