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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC