Download src/php/php-src/ext/curl/tests/bug71523.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug71523.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/bug71523.phpt
-
curl -L -o bug71523.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug71523.phpt
666 Bytes
| --TEST-- | |
| Bug #71523 (Copied handle with new option CURLOPT_HTTPHEADER crashes while curl_multi_exec) | |
| --EXTENSIONS-- | |
| curl | |
| --SKIPIF-- | |
| if (curl_version()['version_number'] === 0x080a00) { | |
| // https://github.com/php/php-src/issues/15997 | |
| die('xfail due to a libcurl bug'); | |
| } | |
| --FILE-- | |
| $base = curl_init('http://www.google.com/'); | |
| curl_setopt($base, CURLOPT_RETURNTRANSFER, true); | |
| $mh = curl_multi_init(); | |
| for ($i = 0; $i < 2; ++$i) { | |
| $ch = curl_copy_handle($base); | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, ['Foo: Bar']); | |
| curl_multi_add_handle($mh, $ch); | |
| } | |
| do { | |
| curl_multi_exec($mh, $active); | |
| } while ($active); | |
| okey | |
| --EXPECT-- | |
| okey | |