|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-01 13:04 UTC] odarcan at hotmail dot com
Hi, i've just upgraded to php 4.3.0 and i'm pleased the fsockopen timeout problem has been fixed..
but now to something more serious:
the php script interpreter crashes, windows takes over command and says "PHP Script Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience." and you get to choose to send or dont send an error report to microsoft
("please tell microsoft about this problem" it says)
this happens very often... i suspect this has something to do with the die() construct and/or the mysql interface... because the crash often comes directly after a erroneus mysql query a it's die-error-message... but not always.. i think.. sometimes no error is produced by php at all..
i want to be of more help by telling you how to reproduce the error but i haven't figured out how to figure out how to tell you to reproduce the error..
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
check this out: THIS IS THE CODE: result=mysql_query($querystring[$a]) or die ("ERROR: $a : ".$querystring[$a].mysql_error()); THIS IS THE OUTPUT: ERROR: 3 : 1.48592465966E-313You have an error in your SQL syntax near '3766568' at line 1<br /> PLUS THIS: <b>Warning</b>: Unknown list entry type in request shutdown (61) in <b>Unknown</b> on line <b>0</b><br /> and then... BOOOOOM it crashes.. but the weird warning is not always typed.. perhaps in only 1 of every 5 crash..Hi, i've just upgraded to php 4.3.0 and i'm pleased the fsockopen timeout problem has been fixed.. but now to something more serious: the php script interpreter crashes, windows takes over command and says "PHP Script Interpreter has encountered a problem and needs to close. We are sorry for the inconvenience." and you get to choose to send or dont send an error report to microsoft ("please tell microsoft about this problem" it says) this happens very often... i suspect this has something to do with the die() construct and/or the mysql interface... because the crash often comes directly after a erroneus mysql query a it's die-error-message... but not always.. i think.. sometimes no error is produced by php at all.. i want to be of more help by telling you how to reproduce the error but i haven't figured out how to figure out how to tell you to reproduce the error..Hello, I've run into what seems to be the same problem. I also have a way to reproduce it: WinXP HE (NT 5.1), Apache 1.3.27, PHP 4.3.0 on CGI-FCGI <?php error_reporting(E_ALL ^ E_WARNING); set_time_limit(10); for($x=1;$x<10000;$x++){ $f = fsockopen('127.0.0.1',$x,$errno,$errstr,1); print "Port $x: "; print($f)?'Success!':'Failed!'; print "<br />"; } ?> Almost every single time it causes an HTTP 500 Error This from the server's log: [Sat Jan 25 01:00:23 2003] [error] [client 127.0.0.1] Premature end of script headers: {PATH TO PHP}/php.exe [Sat Jan 25 01:00:23 2003] [error] [client 127.0.0.1] FATAL: erealloc(): Unable to allocate 10 bytes You may need to refresh that page a few times to get the "Program has crashed and needs to close/Report to MS" window. When this happens, the browser hangs until you click something on that dialog box. btw, I've also increased the timeout to fsockopen(), while the error still occures, it seems easier to reproduce with lower timeouts. I have the files appcompat.txt, manifest.txt and php.exe.mdmp generated by the error reporting app available upon request. Could this also be related to http://bugs.php.net/bug.php?id=21262 ? Thank you for your time. - Alex, http://alexnow.com