bug71144.phpt 410 B

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