php.net |  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
Votes:1
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:
MUST BE VALID
Solve the problem:
10 + 22 = ?
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 http://www.php.net/downloads.php with Apache/1.3.24.

Nico de Vries (nico@osict.com)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-06 03:11 UTC] nico at osict dot com
I tried http://snaps.php.net/win32/php4-win32-STABLE-latest.zip as sugested by wez@php.net and have not been able to reproduce the problem with that version. Thank you for looking into it.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 23:01:34 2024 UTC