From: abel dot online at xs4all dot nl Operating system: Windows 2k, XP PHP version: 5.2.0RC1 PHP Bug Type: *Configuration Issues Bug description: PHP cannot find extensions in updated PATH
Description: ------------ Part of the new strategy of PHP is that you do not need to place files in the c:\windows or other "global" scattered directories. This does not yet work for extensions: Changes to the PATH environment variable are not available for PHP. Only the original PATH (before having updated the PATH) appears to be visible to PHP. If you want to load an extension, say php_mysql.dll, and this extension needs something from the new path, say libmysql.dll, you are out of luck. Reproduce code: --------------- 1. Install Apache 2.0 or 2.2 2. Install PHP using default instructions 3. Add PHP path to the PATH (system wide) 4. Configure Apache to use PHP 5. Place php.ini in configs/apache 6. Test Apache with PHP --> success 7. Test PATH in command prompt --> success 8. Uncomment php_mysql.dll extension line 9. Copy php_mysql.dll to extension_dir 10. Restart Apache --> error occurs Note: for these instructions to work, it is best to leave as much of the original settings in place. Workaround: place the offended files (php_mysql.dll and libmysql.dll) in the root location of Apache. Expected result: ---------------- I expect that after installing PHP, it will look for the PATH locations and locations mentioned in php.ini. The extension location is not searched by default (for linked dlls), so that is not an option. If you do not have the luxury to restart a server, you will have to place some needed dll files manually to these scattered locations. Actual result: -------------- The result of steps 1-10: Apache cannot be restarted. PHP raised an error. In the Event Logs of Windows you will find: Type: Information Source: Application Popup Category: None Event ID: 26 Description: Application popup: httpd.exe - Unable To Locate DLL : The dynamic link library LIBMYSQL.dll could not be found in the specified path C:\Program Files\Apache Software Foundation\Apache2.2\bin;.; C:\WINNT\system32;C:\WINNT\system;C:\WINNT;C:\WINNT\system32; C:\WINNT;C:\WINNT\System32\Wbem;D:\Program files\Sun\AppServer\jdk\bin. -- Edit bug report at http://bugs.php.net/?id=38307&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38307&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38307&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38307&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38307&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38307&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38307&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38307&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38307&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38307&r=support Expected behavior: http://bugs.php.net/fix.php?id=38307&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38307&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38307&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38307&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38307&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38307&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38307&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38307&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38307&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38307&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38307&r=mysqlcfg
