From: sqchen at cititz dot net Operating system: redhat 7.3 PHP version: 5.1.2 PHP Bug Type: Streams related Bug description: stream_socket_server() memory leaks when the port is not allowed
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 bug report at http://bugs.php.net/?id=37077&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37077&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37077&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37077&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37077&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37077&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37077&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37077&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37077&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37077&r=support Expected behavior: http://bugs.php.net/fix.php?id=37077&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37077&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37077&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37077&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37077&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37077&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37077&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37077&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37077&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37077&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37077&r=mysqlcfg