Skip to content

Commit 834673d

Browse files
committed
fix
1 parent 43a4d5e commit 834673d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

ext/curl/tests/bug76675.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bug #76675 (Segfault with H2 server push write/writeheader handlers)
44
curl
55
--SKIPIF--
66
<?php
7-
if (!fsockopen("localhost", 443, $errno, $errstr, 0.5)) {
7+
if (!@fsockopen("localhost", 443, $errno, $errstr, 0.5)) {
88
die("skip test needing Caddy");
99
}
1010
$curl_version = curl_version();

ext/curl/tests/bug77535.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bug #77535 (Invalid callback, h2 server push)
44
curl
55
--SKIPIF--
66
<?php
7-
if (!fsockopen("localhost", 443, $errno, $errstr, 0.5)) {
7+
if (!@fsockopen("localhost", 443, $errno, $errstr, 0.5)) {
88
die("skip test needing Caddy");
99
}
1010
$curl_version = curl_version();

ext/curl/tests/curl_pushfunction.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
--TEST--
22
Test CURLMOPT_PUSHFUNCTION
3+
-CREDITS--
4+
Davey Shafik
5+
Kévin Dunglas
36
--EXTENSIONS--
47
curl
58
--SKIPIF--
69
<?php
7-
if (!fsockopen("localhost", 443, $errno, $errstr, 0.5)) {
10+
if (!@fsockopen("localhost", 443, $errno, $errstr, 0.5)) {
811
die("skip test needing Caddy");
912
}
1013
$curl_version = curl_version();
@@ -14,7 +17,7 @@ if ($curl_version['version_number'] < 0x073d00) {
1417
?>
1518
--FILE--
1619
<?php
17-
$callback = function($parent_ch, $pushed_ch, array $headers) use (&$transfers) {
20+
$callback = function($parent_ch, $pushed_ch, array $headers) {
1821
return CURL_PUSH_OK;
1922
};
2023

@@ -40,7 +43,6 @@ do {
4043
if (false !== $info && $info['msg'] == CURLMSG_DONE) {
4144
$handle = $info['handle'];
4245
if ($handle !== null) {
43-
$transfers--;
4446
$responses[] = curl_multi_getcontent($info['handle']);
4547
curl_multi_remove_handle($mh, $handle);
4648
curl_close($handle);

0 commit comments

Comments
 (0)