php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35852 PHP Startup: Invalid library
Submitted: 2005-12-30 19:12 UTC Modified: 2005-12-30 19:21 UTC
From: jimbewlay at zoom dot co dot uk Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.1.1 OS: WInXP SP2
Private report: No CVE-ID: None
 [2005-12-30 19:12 UTC] jimbewlay at zoom dot co dot uk
Description:
------------
Hi Guys 

Intro:

I have had this problem for a few days now, and I have searched both bug reports and the net an can find references to similar problems, along with solutions. I have tried all to no avail. 

The envronment;
the environment consists of Windows XP pro SP2, PHP_VERISON 5.0.4 build 2600,Apache/2.0.44 (Win32)  and MySql v4.0.18 

Cant' think of anything else relevant

The problem:

When starting or restarting Apache I get the following errors:

 
PHP Warning:  PHP Startup: ⌠U8: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'libmysql.dll'  in Unknown on l
ine 0
PHP Warning:  PHP Startup: H╚│: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: ??▒: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: ?φ╡: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: ►A8: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: ∞∙│: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0
PHP Warning:  PHP Startup: Hh╣: Unable to initialize module
Module compiled with module API=20020429, debug=0, thread-safety=1
PHP    compiled with module API=20041030, debug=0, thread-safety=1
These options need to match
 in Unknown on line 0


My initial reaction was either the extension_dir was incorrectly specified or that the files were not i the direcory specified. I have checked and re-checked these and all is OK. Some solutions advance recommend the installation in the windows/system32 directory. this ahs been done. No difference. I also checked the environment variables to make sure teh paths is correct. All OK. (there is some questions about the integrity of paths in winXP So an asumption here). Significantly though if I try to move or tamper with 'libmysql.dll'in the windows/system32 I get an error ebcause teh file is being used. I assume by PHP? In any event I cannot load the php_GD2.dll which is basically what I want. I am also concerned about the compilation differences. I have tried recovering teh lastest version of 'libmysql.dll' from the net. This does not have any effect. I have seen previous issues with respect to Invalid Library problmes in the bug report, as fixed, but these appear to relate to different Operating systems. however other people are reporting similar problems in the various PHP news groups 

I am utterly stuck so over to you guys.

If you need more info please ask.

Reagrds

JimB


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-30 19:21 UTC] tony2001@php.net
For some weird reason you're trying to load a library that is NOT a PHP extension.
Not PHP problem.
 [2024-03-21 13:50 UTC] estagio dot lucasmoreira at gmail dot com
Hi Guys 

Intro:

I have had this problem for a few days now, and I have searched both bug reports and the net an can find references to similar problems, along with solutions. I have tried all to no avail. 

The envronment;
the environment consists of Windows XP pro SP2, PHP_VERISON 5.0.4 build 2600,Apache/2.0.44 (Win32)  and MySql v4.0.18 

Cant' think of anything else relevant

The problem:

PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'fbclient.dll' in Unknown on line 0
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'gds32.dll' in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '\\xampp\\php\\ext\\php_interbase.dll' - N\xef\xbf\xbdo foi poss\xef\xbf\xbdvel encontrar o m\xef\xbf\xbddulo especificado.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '\\xampp\\php\\ext\\php_pdo_firebird.dll' - N\xef\xbf\xbdo foi poss\xef\xbf\xbdvel encontrar o m\xef\xbf\xbddulo especificado.\r\n in Unknown on line 0
[Thu Mar 21 10:47:16.823167 2024] [mpm_winnt:notice] [pid 2708:tid 632] AH00455: Apache/2.4.37 (Win32) OpenSSL/1.0.2p PHP/5.6.40 configured -- resuming normal operations
[Thu Mar 21 10:47:16.823167 2024] [mpm_winnt:notice] [pid 2708:tid 632] AH00456: Apache Lounge VC11 Server built: Oct 22 2018 14:14:30
[Thu Mar 21 10:47:16.823167 2024] [core:notice] [pid 2708:tid 632] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Mar 21 10:47:16.837444 2024] [mpm_winnt:notice] [pid 2708:tid 632] AH00418: Parent: Created child process 21852
[Thu Mar 21 10:47:17.964686 2024] [ssl:warn] [pid 21852:tid 624] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Mar 21 10:47:18.534489 2024] [ssl:warn] [pid 21852:tid 624] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'fbclient.dll' in Unknown on line 0
PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'gds32.dll' in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '\\xampp\\php\\ext\\php_interbase.dll' - N\xef\xbf\xbdo foi poss\xef\xbf\xbdvel encontrar o m\xef\xbf\xbddulo especificado.\r\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '\\xampp\\php\\ext\\php_pdo_firebird.dll' - N\xef\xbf\xbdo foi poss\xef\xbf\xbdvel encontrar o m\xef\xbf\xbddulo especificado.\r\n in Unknown on line 0
[Thu Mar 21 10:47:18.613321 2024] [mpm_winnt:notice] [pid 21852:tid 624] AH00354: Child: Starting 150 worker threads.

Previously, I used Windows 10 configured in the same way and it was working normally. Could Windows 11 have implications for this?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 24 18:01:29 2024 UTC