bug71144.phpt 421 B

12345678910111213
  1. --TEST--
  2. Bug #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();
  9. var_dump(curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, 1));
  10. ?>
  11. --EXPECTF--
  12. Warning: curl_setopt(): CURLOPT_DNS_USE_GLOBAL_CACHE cannot be activated when thread safety is enabled in %sbug71144.php on line %d
  13. bool(false)