|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37077 stream_socket_server() memory leaks when the port is not allowed
Submitted: 2006-04-14 03:05 UTC Modified: 2006-04-14 10:01 UTC
From: sqchen at cititz dot net Assigned:
Status: Closed Package: Streams related
PHP Version: 5.1.2 OS: redhat 7.3
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.
Block user comment
Status: Assign to:
Bug Type:
From: sqchen at cititz dot net
New email:
PHP Version: OS:


 [2006-04-14 03:05 UTC] sqchen at cititz dot net
stream_socket_server() memory leaks when the port is not allowed such as 23 and when the php version is compiled by --enable-debug

Reproduce code:

Actual result:
Warning: stream_socket_server(): unable to connect to tcp:// (Permission denied) in /home/sqchen/ty.php on line 2
[Fri Apr 14 11:02:28 2006]  Script:  'ty.php'
/home/sqchen/sqchen/php-5.1.2/main/network.c(938) :  Freeing 0x083F2E2C (18 bytes), script=ty.php
=== Total 1 memory leaks detected ===


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-14 10:01 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Aug 08 12:01:25 2020 UTC