ID: 27185
Updated by: [EMAIL PROTECTED]
-Summary: mysql_pconnect() causes a crash during shutdown
Reported By: andrey at cherezov dot koenig dot su
Status: Verified
-Bug Type: MySQL related
+Bug Type: Scripting Engine problem
Operating System: win32
PHP Version: 4CVS, 5CVS (2004-02-26)
New Comment:
This causes the exactly same crash:
?php
pfsockopen(www.php.net, 80, $errno, $errstr, 30);
?
Previous Comments:
[2004-02-25 23:53:29] [EMAIL PROTECTED]
Unfortunately this works with debug build so I can not get a backtrace.
[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.5php.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 0x7300.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
7300
=
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=27185edit=1