|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-13 14:32 UTC] cataphract@php.net
[2012-03-13 14:32 UTC] cataphract@php.net
-Status: Open
+Status: Feedback
[2012-03-13 15:34 UTC] raiderz at gmail dot com
-Status: Feedback
+Status: Open
[2012-03-13 15:34 UTC] raiderz at gmail dot com
[2012-03-14 08:28 UTC] cataphract@php.net
[2012-03-14 08:28 UTC] cataphract@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: cataphract
[2012-03-17 19:37 UTC] cataphract@php.net
[2012-03-17 19:37 UTC] cataphract@php.net
[2012-03-17 19:37 UTC] cataphract@php.net
-Status: Verified
+Status: Closed
[2012-04-18 09:45 UTC] laruence@php.net
[2012-04-26 11:32 UTC] ab@php.net
[2012-07-24 23:36 UTC] rasmus@php.net
[2013-11-17 09:33 UTC] laruence@php.net
[2014-10-07 23:26 UTC] stas@php.net
[2014-10-07 23:37 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 15:00:01 2025 UTC |
Description: ------------ stream_context_create() causes memory leaks on use width stream_socket_client Version PHP 5.3.6 Test script: --------------- for($test=1;$test<=5;$test++) { echo 'memory: '.round(memory_get_usage()/1024, 0)."kb\n"; for($i=0;$i<=100;$i++) { $context = stream_context_create(array()); $stream = stream_socket_client('udp://0.0.0.0:80', $errno, $errstr, 10, STREAM_CLIENT_CONNECT, $context); fclose($stream); unset($context); unset($stream); } } Expected result: ---------------- memory: 615kb memory: 674kb memory: 732kb memory: 790kb memory: 847kb