summaryrefslogtreecommitdiff
path: root/ext/standard/tests/http/bug60570.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/http/bug60570.phpt')
-rw-r--r--ext/standard/tests/http/bug60570.phpt36
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/standard/tests/http/bug60570.phpt b/ext/standard/tests/http/bug60570.phpt
index b72011d5e2..3c16d78033 100644
--- a/ext/standard/tests/http/bug60570.phpt
+++ b/ext/standard/tests/http/bug60570.phpt
@@ -10,30 +10,30 @@ require 'server.inc';
function do_test() {
- $responses = array(
- "data://text/plain,HTTP/1.0 404 Not Found\r\n\r\n",
- "data://text/plain,HTTP/1.0 404 Not Found\r\n\r\n",
- "data://text/plain,HTTP/1.0 404 Not Found\r\n\r\n"
- );
+ $responses = array(
+ "data://text/plain,HTTP/1.0 404 Not Found\r\n\r\n",
+ "data://text/plain,HTTP/1.0 404 Not Found\r\n\r\n",
+ "data://text/plain,HTTP/1.0 404 Not Found\r\n\r\n"
+ );
- $pid = http_server("tcp://127.0.0.1:12342", $responses, $output);
+ $pid = http_server("tcp://127.0.0.1:12342", $responses, $output);
- $a = $b = count(get_resources());
+ $a = $b = count(get_resources());
- $i = 3;
- while ($i--) {
- $context = stream_context_create(array('http'=>array('timeout'=>1)));
- file_get_contents('http://127.0.0.1:12342/', 0, $context);
- unset($context);
+ $i = 3;
+ while ($i--) {
+ $context = stream_context_create(array('http'=>array('timeout'=>1)));
+ file_get_contents('http://127.0.0.1:12342/', 0, $context);
+ unset($context);
- $b = $a;
- $a = count(get_resources());
- }
+ $b = $a;
+ $a = count(get_resources());
+ }
- http_server_kill($pid);
+ http_server_kill($pid);
- echo "leak? penultimate iteration: $b, last one: $a\n";
- var_dump($a == $b);
+ echo "leak? penultimate iteration: $b, last one: $a\n";
+ var_dump($a == $b);
}
do_test();