22Bug #77535 (Invalid callback, h2 server push)
33--EXTENSIONS--
44curl
5- --XFAIL--
6- http2.golang.org/serverpush is gone
75--SKIPIF--
86<?php
9- if (getenv ("SKIP_ONLINE_TESTS " )) {
10- die ("skip online test " );
11- }
7+ include 'skipif-nocaddy.inc ' ;
8+
129$ curl_version = curl_version ();
13- if ($ curl_version ['version_number ' ] < 0x073d00 ) {
14- exit ("skip: test may crash with curl < 7.61 .0 " );
10+ if ($ curl_version ['version_number ' ] < 0x080100 ) {
11+ exit ("skip: test may crash with curl < 8.1 .0 " );
1512}
16- die ("skip test is slow due to timeout, and XFAILs anyway " );
1713?>
1814--FILE--
1915<?php
@@ -36,7 +32,7 @@ class MyHttpClient
3632 curl_setopt ($ this ->curl , CURLOPT_HEADER , false );
3733 curl_setopt ($ this ->curl , CURLOPT_RETURNTRANSFER , false );
3834 curl_setopt ($ this ->curl , CURLOPT_FAILONERROR , false );
39- curl_setopt ($ this ->curl , CURLOPT_URL , 'https://http2.golang.org /serverpush ' );
35+ curl_setopt ($ this ->curl , CURLOPT_URL , 'https://localhost /serverpush ' );
4036 curl_setopt ($ this ->curl , CURLOPT_HTTP_VERSION , CURL_HTTP_VERSION_2_0 );
4137 curl_setopt ($ this ->curl , CURLOPT_HEADERFUNCTION , function ($ ch , $ data ) {
4238 return \strlen ($ data );
0 commit comments