1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/ext/curl/tests/bug71144.phpt
T
2021-06-11 13:57:47 +02:00

15 lines
410 B
PHP

--TEST--
Bug #71144 (Sementation fault when using cURL with ZTS)
--EXTENSIONS--
curl
--SKIPIF--
<?php if (!PHP_ZTS) { print "skip only for zts build"; } ?>
--FILE--
<?php
$ch = curl_init();
var_dump(curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, 1));
?>
--EXPECTF--
Warning: curl_setopt(): CURLOPT_DNS_USE_GLOBAL_CACHE cannot be activated when thread safety is enabled in %sbug71144.php on line %d
bool(false)