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