php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sqchen at cititz dot net
New email:
PHP Version: OS:

 

 [2006-04-14 03:05 UTC] sqchen at cititz dot net
Description:
------------
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:
---------------
<?php
stream_socket_server("tcp://127.0.0.1:23");
?>
~


Actual result:
--------------
Warning: stream_socket_server(): unable to connect to tcp://127.0.0.1:23 (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 ===


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-14 10:01 UTC] tony2001@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC