|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13920 close () doesn't check input properly ?
Submitted: 2001-11-04 10:23 UTC Modified: 2001-11-12 19:07 UTC
From: leen at wirehub dot nl Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.5 OS: Linux2.4 Debian/Testing G3 PPC
Private report: No CVE-ID: None
 [2001-11-04 10:23 UTC] leen at wirehub dot nl
Note: Ofcourse I know this function is experimental, I'm just trying to help the bugsquiding.

I'm running 4.0.5 and checked the changes in 4.0.6 and 4.0.5 of sockets.c to see if the close function changed, it didn't (as far as I see it), so I think this also applies to 4.0.6

I don't know if this is PPC specific, although I doubt it.

here is the code, that crashes the php module (apache still works, but php doesn't output anything and headers don't get send):
<? close ($fd); ?>
if only crashes after multiple times (and with fast enough subsequent tries ?), this is what I used for testing:
#! /bin/sh
while true
  lynx -source
hope this was helpfull


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-04 19:19 UTC]
Please try the latest CVS. e.g. a snapshot from

And note that all the functions have been renamed.


 [2001-11-12 09:19 UTC] leen at wirehub dot nl
OK, took me some time to find time, but it works for me (although the other was a distributionbuild, this one is mine, so what does it really tell us ?).
 [2001-11-12 19:07 UTC]
If it works in CVS, it's gonna work in next release too.
So closed.


PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC