#37077 [Opn->Csd]: stream_socket_server() memory leaks when the port is not allowed

From: Date: Fri, 14 Apr 2006 10:01:44 +0000
Subject: #37077 [Opn->Csd]: stream_socket_server() memory leaks when the port is not allowed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95780@lists.php.net to get a copy of this message
ID: 37077 Updated by: tony2001@php.net Reported By: sqchen at cititz dot net -Status: Open +Status: Closed Bug Type: Streams related Operating System: redhat 7.3 PHP Version: 5.1.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2006-04-14 03:05:01] 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 === ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37077&edit=1

« previous php.bugs (#95780) next »