Download src/php/php-src/ext/curl/tests/bug80121.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug80121.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/curl/tests/bug80121.phpt
-
curl -L -o bug80121.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/curl/tests/bug80121.phpt
591 Bytes
| --TEST-- | |
| Bug #80121: Null pointer deref if CurlHandle directly instantiated | |
| --EXTENSIONS-- | |
| curl | |
| --FILE-- | |
| try { | |
| new CurlHandle; | |
| } catch (Error $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| try { | |
| new CurlMultiHandle; | |
| } catch (Error $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| try { | |
| new CurlShareHandle; | |
| } catch (Error $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| --EXPECT-- | |
| Cannot directly construct CurlHandle, use curl_init() instead | |
| Cannot directly construct CurlMultiHandle, use curl_multi_init() instead | |
| Cannot directly construct CurlShareHandle, use curl_share_init() instead | |