|  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
 [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-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC