From:             chris at epliant dot com
Operating system: Windows XP Professional SP2
PHP version:      5.0.3
PHP Bug Type:     Dynamic loading
Bug description:  Extensions do not recognize needed files in PATH

Description:
------------
This is a new install of PHP 5.0.3.  I am following the instructions to
try to centralize all files in the PHP dirs rather than copying supporting
files to C:\WINDOWS\SYSTEM32.

I added C:\php5 to system PATH.
Copied libmysql.dll to C:\php5\ from C:\mysql\lib\opt\.
libeay32.dll and ssleay32.dll already existed in C:\php5
I enabled the curl, mysql, and/or  mysqli extensions.

The only location that the Apache module will recognize the above files is
C:\WINDOWS\SYSTEM32.

Reproduce code:
---------------
php.ini lines:
--------------------------------
extension_dir = "c:/php5/ext/"

extension=php_curl.dll
extension=php_mysql.dll
extension=php_mysqli.dll
--------------------------------

Code:
--------------------------------
<?php
   phpinfo();
?>
--------------------------------


Expected result:
----------------
Start apache and expect phpinfo() to report the presence of curl and mysql
and/or mysqli (I tried it with either one, then both enabled).



Actual result:
--------------
Apache generated warning windows and phpinfo() does not report mysql or
curl.

In starting apache-2.0.52, I get:
PHP Startup: Unable to load dynamic library 'c:\php5\ext\php_mysql.dll' -
The specified module could not be found.

In starting apache-2.0.52, I get:
PHP Startup: Unable to load dynamic library 'c:\php5\ext\php_curl.dll' -
The specified module could not be found.


(When I copied all three of the above files to C:\Windows\System32, Apache
worked properly but defeats the purpose).

-- 
Edit bug report at http://bugs.php.net/?id=31568&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31568&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31568&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31568&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31568&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31568&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31568&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31568&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31568&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31568&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31568&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31568&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31568&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31568&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31568&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31568&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31568&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31568&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31568&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31568&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31568&r=mysqlcfg

Reply via email to