1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/curl/tests/bug80121.phpt
T
2021-06-14 14:52:44 +02:00

29 lines
591 B
PHP

--TEST--
Bug #80121: Null pointer deref if CurlHandle directly instantiated
--EXTENSIONS--
curl
--FILE--
<?php
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