Skip to content

Commit c482431

Browse files
committed
[ci skip] indent fix
1 parent 7789652 commit c482431

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

ext/curl/tests/refcounted_return_must_not_leak.phpt

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,24 @@ Returning refcounted value from callback must not leak
44
curl
55
--FILE--
66
<?php
7-
include 'server.inc';
8-
$host = curl_cli_server_start();
7+
include 'server.inc';
8+
$host = curl_cli_server_start();
99

10-
$url = "{$host}/get.inc";
11-
$ch = curl_init($url);
10+
$url = "{$host}/get.inc";
11+
$ch = curl_init($url);
1212

13-
function return_non_interned_string() {
13+
function return_non_interned_string() {
1414
return str_repeat('x', random_int(5, 5));
15-
}
16-
17-
curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
18-
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19-
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, 'return_non_interned_string');
20-
curl_setopt($ch, CURLOPT_XFERINFOFUNCTION, 'return_non_interned_string');
21-
curl_setopt($ch, CURLOPT_WRITEFUNCTION, 'return_non_interned_string');
22-
curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'return_non_interned_string');
23-
echo curl_exec($ch), PHP_EOL;
24-
echo "ok";
15+
}
2516

17+
curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
18+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
19+
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, 'return_non_interned_string');
20+
curl_setopt($ch, CURLOPT_XFERINFOFUNCTION, 'return_non_interned_string');
21+
curl_setopt($ch, CURLOPT_WRITEFUNCTION, 'return_non_interned_string');
22+
curl_setopt($ch, CURLOPT_HEADERFUNCTION, 'return_non_interned_string');
23+
echo curl_exec($ch), PHP_EOL;
24+
echo "ok";
2625
?>
2726
--EXPECT--
2827
ok

0 commit comments

Comments
 (0)