|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23061 fockopen resource leaking
Submitted: 2003-04-05 05:21 UTC Modified: 2003-04-06 03:11 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: nico at osict dot com Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.3.1 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
10 + 14 = ?
Subscribe to this entry?

 [2003-04-05 05:21 UTC] nico at osict dot com
When fockopen is used on a non working IP address (e.g. to test if some server is currently running) it seems to cause resource leaking. Even if fclose is used properly, and the php page has finished. This behaviour does not occur with working IP addresses.

This can be verified with windows task manager by looking in the handles column of apache.exe.

When repeated many times (>10000) Windows XP will collapse because applications will no longer be able to open IP ports.

I am using the windows binary on with Apache/1.3.24.

Nico de Vries (


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-06 03:11 UTC] nico at osict dot com
I tried as sugested by and have not been able to reproduce the problem with that version. Thank you for looking into it.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Aug 10 03:03:38 2022 UTC