ID:               30790
 Updated by:       [EMAIL PROTECTED]
 Reported By:      stolle at web dot de
-Status:           Open
+Status:           Bogus
 Bug Type:         Reproducible crash
 Operating System: Windows XP
 PHP Version:      5.0.2
 New Comment:

This is bug 25570 - try the patch:
http://cvs.apache.org/~jorton/php_abort.diff or use any of the
snapshots from http://snaps.php.net/


Previous Comments:
------------------------------------------------------------------------

[2004-11-15 08:58:12] stolle at web dot de

Description:
------------
Apache Support has forwarded me to use the PHP-Reporting System.

Try the small script.

The used file "c:\temp\x3.iso" may be of a size a 20 MB or so. I used
an iso-Image of something. But 
content doesn't matter.
If the file-Transfer is interrupted by the client (IE closed f.e.) the
Apache worker crashes.
If you eleminate the "while" everything is ok.

This is only a simplified Script. Everytime when sending data throug an
php script, from whithin a while-loop, or any other language construct,
the worker crashes when connection is lost.

I'm using XP SP2, Apache 2.0.52 and PHP 5.0.2

I tried the 3 Apache config lines:
EnableSendfile Off
EnableMMAP Off
Win32DisableAcceptEx 
No difference. Worker crashes.


We can't continue developing our php-Application (Alternativ User
Interface 
for Multimedia Home-Devices), Subproject: Streaming Video-Content, if
we can't 
fix this bug.

Help would be great.

sorry for my english ;)
Yours
Andreas


Reproduce code:
---------------
<?php
    error_log( "Hei" );
    $fh = fopen( "c:/temp/x3.iso", "rb" );
        
    while ( !feof($fh) )
        fpassthru( $fh );
?>



Expected result:
----------------
Apache worker should not crash if connection is lost.

Actual result:
--------------
[Thu Nov 11 17:17:02 2004] [notice] Parent: child process exited with
status 
4294967295 -- Restarting.
[Thu Nov 11 17:17:03 2004] [notice] Parent: Created child process 4968
[Thu Nov 11 17:17:03 2004] [notice] Disabled use of AcceptEx() WinSock2
API
[Thu Nov 11 17:17:03 2004] [notice] Child 4968: Child process is
running
[Thu Nov 11 17:17:03 2004] [notice] Child 4968: Acquired the start
mutex.
[Thu Nov 11 17:17:03 2004] [notice] Child 4968: Starting 250 worker
threads.
[Thu Nov 11 17:17:03 2004] [notice] Child 4968: Listening on port
8001.




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30790&edit=1

Reply via email to