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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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 May 16 14:01:32 2024 UTC