From:             patrick at baynewmedia dot com
Operating system: Windows XP Pro & Windows Vista
PHP version:      5.2.4
PHP Bug Type:     *Configuration Issues
Bug description:  Unable to load Dynamic Link Libraries

Description:
------------
I have seen this posted on numerous other forums and, oddly, listed
numerous times as bogus or closed with minimal feedback here. However,
despite trying nearly all the suggestions I've found and despite being a
heavy user of PHP since version 3, the newest one has some serious issues
when loading DLLs at startup.

First of all, I downloaded the Windows installer and installed into
"C:\PHP5". I set the PATH environment variable to "C:\PHP5; C:\PHP5\ext".
This was done on a NEW install of Windows XP Pro as well as Vista.

Upon installation, I updated the "php.ini" to read:
...

; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\PHP5\ext"

When I ran PHP, it popped up a series of "unable to load Dynamic Link
Library" warnings. I moved all the extension DLLs into the C:\PHP5
directory and updated the INI file to read:

; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\PHP5"

This resulted in the same error (see code section below for errors).

I updated the INI to read:

; Directory in which the loadable extensions (modules) reside.
extension_dir ="\PHP5"

...then...

; Directory in which the loadable extensions (modules) reside.
extension_dir =".\"

...then...

; Directory in which the loadable extensions (modules) reside.
extension_dir ="."

...and...

; Directory in which the loadable extensions (modules) reside.
extension_dir =""

Finally, I repeated these steps using forward slashes in the path instead.
For example: extension_dir ="C:/PHP5"

None of these combinations resulted in any changes to the error messages.
I commented out the offending libraries and got PHP to run. I then decided
to try my luck with MySQL so I downloaded it, installed it, and tried a
basic connection. I got the error that the library "libmysql.dll" could not
be found. Again, I went through page after page of advice on this issue:
Update the DLL using MySQL's code, put the DLL into C:\, put it into
C:\WINDOWS, then C:\WINDOWS\SYSTEM32, the C:\WINDOWS\SYSTEM (and the
equivalents on Windows Vista). I set various security settings, added the
path to the PATH environment variable, and basically ran the gamut of tests
and fixes I could find both here on the PHP bug reports and on other sites
where these bugs are increasingly numerous.

Folks, PHP 5.2.4 simply doesn't work right! As mentioned, I've been using
it now since version 3 and I have NEVER encountered the incredible level of
frustration in trying to set up a simple PHP installation as this. If the
offending DLLs shouldn't be enabled by default, why are they? Why does the
pop-up dialog not state the file name correctly when reporting the DLL? Is
it that the DLLs can't be found (because I assure you they ARE there) or
because there's another problem with them? Finally, why is libmysql.dll
failing? What's happened in the previous few versions that the Windows
installation process is now, basically, not working?

Please don't respond with a piddly trifling response to this. I'm a web
developer and know my way around my system. I've been banging my head
against the wall with this for over a week. Reading responses here like
"you probably forgot to set the PATH" is frankly insulting. I've been
trying to fix this installation now for over a week using a wonderful array
of INI/PATH settings and have not found a solution that works. On Vista I
managed to at least get phpinfo() working (no extra modules like MySQL
loading but at least something)...but on XP Pro, I can't even execute a
script from the command line because:

"The specified module(s) could not be found."

Please...can someone offer a real, working solution that doesn't assume
that I've missed the basic, general setup stuff?

Thanks,
P

Reproduce code:
---------------
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_oci8.dll'
 - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_pdo_oci.d
ll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_pdo_oci8.
dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_pdo_sqlit
e_external.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_pspell.dl
l' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_sybase_ct
.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_ibm_db2.d
ll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_ifx.dll'
- The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_ingres.dl
l' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_maxdb.dll
' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_mcve.dll'
 - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_netools.d
ll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_oracle.dl
l' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_pdo_ibm.d
ll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_pdo_infor
mix.dll' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\php5\php_svn.dll'
- The specified module could not be found.
 in Unknown on line 0
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)
Cannot find module (TCP-MIB): At line 0 in (none)
Cannot find module (UDP-MIB): At line 0 in (none)
Cannot find module (SNMPv2-MIB): At line 0 in (none)
Cannot find module (SNMPv2-SMI): At line 0 in (none)
Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
Cannot find module (SNMPv2-TM): At line 0 in (none)
PHP Notice:  Constant XML_ELEMENT_NODE already defined in Unknown on line
0
PHP Notice:  Constant XML_ATTRIBUTE_NODE already defined in Unknown on
line 0
PHP Notice:  Constant XML_TEXT_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_CDATA_SECTION_NODE already defined in Unknown on
line
0
PHP Notice:  Constant XML_ENTITY_REF_NODE already defined in Unknown on
line 0
PHP Notice:  Constant XML_ENTITY_NODE already defined in Unknown on line
0
PHP Notice:  Constant XML_PI_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_COMMENT_NODE already defined in Unknown on line
0
PHP Notice:  Constant XML_DOCUMENT_NODE already defined in Unknown on line
0
PHP Notice:  Constant XML_DOCUMENT_TYPE_NODE already defined in Unknown on
line
0
PHP Notice:  Constant XML_DOCUMENT_FRAG_NODE already defined in Unknown on
line
0
PHP Notice:  Constant XML_NOTATION_NODE already defined in Unknown on line
0
PHP Notice:  Constant XML_HTML_DOCUMENT_NODE already defined in Unknown on
line
0
PHP Notice:  Constant XML_DTD_NODE already defined in Unknown on line 0
PHP Notice:  Constant XML_ELEMENT_DECL_NODE already defined in Unknown on
line 0

PHP Notice:  Constant XML_ATTRIBUTE_DECL_NODE already defined in Unknown
on line
 0
PHP Notice:  Constant XML_ENTITY_DECL_NODE already defined in Unknown on
line 0
PHP Notice:  Constant XML_NAMESPACE_DECL_NODE already defined in Unknown
on line
 0
PHP Notice:  Constant XML_LOCAL_NAMESPACE already defined in Unknown on
line 0
PHP Notice:  Constant XML_ATTRIBUTE_CDATA already defined in Unknown on
line 0
PHP Notice:  Constant XML_ATTRIBUTE_ID already defined in Unknown on line
0
PHP Notice:  Constant XML_ATTRIBUTE_IDREF already defined in Unknown on
line 0
PHP Notice:  Constant XML_ATTRIBUTE_IDREFS already defined in Unknown on
line 0
PHP Notice:  Constant XML_ATTRIBUTE_ENTITY already defined in Unknown on
line 0
PHP Notice:  Constant XML_ATTRIBUTE_NMTOKEN already defined in Unknown on
line 0

PHP Notice:  Constant XML_ATTRIBUTE_NMTOKENS already defined in Unknown on
line
0
PHP Notice:  Constant XML_ATTRIBUTE_ENUMERATION already defined in Unknown
on li
ne 0
PHP Notice:  Constant XML_ATTRIBUTE_NOTATION already defined in Unknown on
line
0
PHP Warning:  require_once(SAM/php_sam.php): failed to open stream: No
such file
 or directory in sam_factory on line 1
PHP Fatal error:  require_once(): Failed opening required
'SAM/php_sam.php' (inc
lude_path='.;C:\php5\pear') in sam_factory on line 1
Could not startup.
Error in my_thread_global_end(): 4 threads didn't exit


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

Reply via email to