ID: 27185 User updated by: andrey at cherezov dot koenig dot su Reported By: andrey at cherezov dot koenig dot su Status: Open Bug Type: MySQL related Operating System: Windows 2003, XP PHP Version: 4.3.5RC4-dev New Comment:
In the current php5-win32-latest.zip there missing php_mysql.dll and libmysql.dll, and call to mysql functions return error: H:\php\php5-win32-latest>php.exe test.php PHP Fatal error: Call to undefined function mysql_pconnect() in H:\php\php5-win 32-latest\test.php on line 2 Previous Comments: ------------------------------------------------------------------------ [2004-02-23 02:55:42] andrey at cherezov dot koenig dot su Still the same failure. H:\php\php4-win32-STABLE-latest>php.exe test.php Content-type: text/html X-Powered-By: PHP/4.3.5RC4-dev AppName: php.exe, AppVer: 4.3.5.5, ModName: ntdll.dll ModVer: 5.1.2600.1217, Offset: 00007bd2 ------------------------------------------------------------------------ [2004-02-22 22:24:56] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Try the snapshot. I can _NOT_ repoproduce this. (I'm building my own binaries, so maybe there's something wrong with the win32 build..) The PHP5b4 had a bug that is fixed in CVS, so try the PHP5 snapshot too. ------------------------------------------------------------------------ [2004-02-21 05:32:54] andrey at cherezov dot koenig dot su Btw, may be this helps, this script with the PHP 5 beta4 output this: H:\php\php-5.0.0b4-Win32\php.exe test.php PHP Warning: Unknown persistent list entry type in module shutdown (22) in Unknown on line 0 And with PHP 5 beta3 it also unable to work: window "entry point mysql_character_set_name not found in DLL libmysql.dll". If I replace mysql_Pconnect with the mysql_connect - it works w/o error with PHP5 beta4 and with PHP 4.3.5rc4-dev OK too!! !!! Resume: there is problem in the cleanup code after usage of function mysql_Pconnect() !!! ------------------------------------------------------------------------ [2004-02-21 05:17:47] andrey at cherezov dot koenig dot su !!! Try this script: ---- test.php ---- <? mysql_pconnect( "localhost", "root", "" ); ?> ------------------ Run php.exe test.php It writes its output H:\php\php-4.3.5>php.exe test.php Content-type: text/html X-Powered-By: PHP/4.3.5RC4-dev and then application failure window appears with bug info about php.exe+ntdll.dll ------------------------------------------------------------------------ [2004-02-08 17:59:11] andrey at cherezov dot koenig dot su Description: ------------ After installing PHP 4.3.5rc2 instead of 'old' stable 4.3.4 on my Win2003 Server Application Event Log started to fill with this report lines: ===== Event Type: Error Event Source: Application Error Event Category: (100) Event ID: 1000 Date: 08.02.2004 Time: 10:20:29 User: N/A Description: Faulting application php.exe, version 4.3.5.5, faulting module ntdll.dll, version 5.2.3790.0, fault address 0x00007300.For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp. Data: Application Failure php.exe 4.3.5.5 in ntdll.dll 5.2.3790.0 at offset 00007300 ===== About 1700 such events in past 6 hours. On my acWEB web-server PHP works in CGI mode. Now I've rolled back 4.3.4, and no more errors added to Event log. Reproduce code: --------------- Web-query to ANY php page on my site. Expected result: ---------------- Expected no errors in Event log. Actual result: -------------- The script itself works w/o problems - result pages displayed OK. Seems this fault happens when PHP.EXE finished its work. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27185&edit=1