php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38071 Module unable to initialize, date miscompares
Submitted: 2006-07-11 20:31 UTC Modified: 2006-07-11 23:13 UTC
From: rodney at nerdsindenial dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.1.4 OS: Windows XP Pro
Private report: No CVE-ID: None
 [2006-07-11 20:31 UTC] rodney at nerdsindenial dot com
Description:
------------
I took this from the
.\apache2.2\logs\error.log
It is also related to Bug# 38070 (Modules fail to initialize)

[Tue Jul 11 09:52:47 2006] [notice] Apache/2.2.2 (Win32) PHP/5.2.0-dev configured -- resuming normal operations
[Tue Jul 11 09:52:47 2006] [notice] Server built: Apr 29 2006 18:32:31
[Tue Jul 11 09:52:47 2006] [notice] Parent: Created child process 3180
[Tue Jul 11 09:52:48 2006] [notice] Child 4372: Released the start mutex
PHP Warning:  PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP    compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: snmp: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP    compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: sockets: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP    compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Child process is running
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Acquired the start mutex.
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Starting 250 worker threads.
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Starting thread to listen on port 80.
[Tue Jul 11 09:52:49 2006] [notice] Child 4372: Waiting for 250 worker threads to exit.
[Tue Jul 11 09:52:49 2006] [notice] Child 4372: All worker threads have exited.
[Tue Jul 11 09:52:49 2006] [notice] Child 4372: Child process is exiting

I filed bug #38070 with http//bugs.php.net for the undefined function mysql_connect().  I check the dates in the DLLlibraries 
http://pecl4win.php.net/list_dlls.php

	File name 	MD5 sum 	Last update 	Size (KB) 	Downloads
1 	expat.dll 	3e860d331271c23e46efb1ba019701d1 	2005-09-27 	132 	567 	 
2 	fdftk.dll 	038da01c2530c016cd341326ccf7faac 	2005-09-27 	408 	282 	 
3 	fribidi.dll 	a35e92908032cbf02a77369d69c418f6 	2005-09-27 	88 	316 	 
4 	gds32.dll 	5a89f713ec3f253977feac82d4842f04 	2005-09-27 	339 	387 	 
5 	iconv.dll 	bdc04c0ec87fdd780e3cb858944539d8 	2005-09-27 	852 	508 	 
6 	isapi_fcgi.dll 	90b512f6592aaf2e2044a139b64b5477 	2005-10-03 	80 	428 	 
7 	libeay32.dll 	4b3305212fd45946a76f4b42c0d4c535 	2005-09-27 	1,056 	308 	 
8 	libmcrypt.dll 	31727051d9d8f48f2298785e93350738 	2005-10-03 	163 	465 	 
9 	libmhash.dll 	c6fb6338e9659042ea82bfffcd8a5fb3 	2005-09-27 	162 	341 	 
10 	libmysql.dll 	b439c729053e0413de1f136114363cac 	2005-09-27 	1,044 	691 	 
11 	libmysqli.dll 	93b01db4112b3c5ac0243fef41fd4809 	2005-09-27 	1,036 	720 	 
12 	msql.dll 	51a96ab8272b3f5dcd86eb40e7a52a60 	2005-09-27 	56 	480 	 
13 	ntwdblib.dll 	5e332688261363797426223e02de7d34 	2005-09-27 	272 	298 	 
14 	sablot.dll 	89f212d20a8b7b9a30b1e3284627febf 	2005-09-27 	376 	364 	 
15 	ssleay32.dll 	fc73146bd24d5e180a3deace5cfe2605 	2005-09-27 	196 	358 	 
16 	yaz.dll 	08e82e525c80e324dbb4ad0d816d8386 	2005-09-27 	352 	275 	 

It looks like the dates are close to the ones from the Apache server start of PHP.
There is some confusion; because, The dates I see from the PHP v5.X "X":\PHP
libmysql.dll are from the build date http://snaps.php.net; however, the build DLL's dates do not match the PECL DLL's dates; which, are closer to the Apache dates.  The dates in the Apache ./Apache2.2/lib and ./Apache2.2/bin match the "X":\PHP dates from the PHP v5.2 build.

Irie
Rodney

Reproduce code:
---------------
This happens when the Apache 2.2.2 server is restarted.


Expected result:
----------------
Attempted connection to SQL server rather than undefined function mysql_connect();

Actual result:
--------------
I took this from the
.\apache2.2\logs\error.log

[Tue Jul 11 09:52:47 2006] [notice] Apache/2.2.2 (Win32) PHP/5.2.0-dev configured -- resuming normal operations
[Tue Jul 11 09:52:47 2006] [notice] Server built: Apr 29 2006 18:32:31
[Tue Jul 11 09:52:47 2006] [notice] Parent: Created child process 3180
[Tue Jul 11 09:52:48 2006] [notice] Child 4372: Released the start mutex
PHP Warning:  PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP    compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: snmp: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP    compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: sockets: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP    compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Child process is running
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Acquired the start mutex.
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Starting 250 worker threads.
[Tue Jul 11 09:52:48 2006] [notice] Child 3180: Starting thread to listen on port 80.
[Tue Jul 11 09:52:49 2006] [notice] Child 4372: Waiting for 250 worker threads to exit.
[Tue Jul 11 09:52:49 2006] [notice] Child 4372: All worker threads have exited.
[Tue Jul 11 09:52:49 2006] [notice] Child 4372: Child process is exiting



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-11 23:13 UTC] tony2001@php.net
You are mixing modules from different versions of PHP.
That won't work and that's expected. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC