|  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
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:
32 - 9 = ?
Subscribe to this entry?

 [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-2019 The PHP Group
All rights reserved.
Last updated: Sun Aug 25 04:01:26 2019 UTC