php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #982 PHP improperly refuses to shut down
Submitted: 1998-12-08 17:24 UTC Modified: 1999-02-21 15:47 UTC
From: ccurtis at ee dot fit dot edu Assigned:
Status: Closed Package: Other
PHP Version: 3.0.5 OS: Solaris 2.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ccurtis at ee dot fit dot edu
New email:
PHP Version: OS:

 

 [1998-12-08 17:24 UTC] ccurtis at ee dot fit dot edu
I've posted this message at least twice to the general list and haven't recieved any feedback.  The problem is that I have a script that sits in an infinite loop.  I don't want the script to stop running until the client end closes the connection.  This works fine.  However, when the client does close, PHP continues to run, eventually exhausting all server resources.  Apache properly recieves a SIGPIPE and I initially thought it to be an Apache bug (http://bugs.apache.org/index/full/3467) but have since been told that it is more likely that PHP is not properly checking the results of the write operation.  I've looked at the code but don't know enough about the process to determine anything useful.  It does not look like PHP is checking return values, though.  The script is currently offline due to the problem, but Zeev has a copy of the code, as do about a dozen other people who asked for it.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-21 15:47 UTC] jim
This should be fixed in the latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC