xref: /PHP-8.0/ext/curl/tests/bug71144.phpt (revision 78d5783b)
1--TEST--
2Bug #71144 (Sementation fault when using cURL with ZTS)
3--SKIPIF--
4<?php include 'skipif.inc'; ?>
5<?php if (!PHP_ZTS) { print "skip only for zts build"; } ?>
6--FILE--
7<?php
8$ch = curl_init();
9var_dump(curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, 1));
10?>
11--EXPECTF--
12Warning: curl_setopt(): CURLOPT_DNS_USE_GLOBAL_CACHE cannot be activated when thread safety is enabled in %sbug71144.php on line %d
13bool(false)
14