bug65646.phpt 346 B

12345678910111213141516
  1. --TEST--
  2. Bug #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir disabled
  3. --EXTENSIONS--
  4. curl
  5. --SKIPIF--
  6. <?php
  7. if (ini_get('open_basedir')) exit("skip open_basedir is set");
  8. ?>
  9. --FILE--
  10. <?php
  11. $ch = curl_init();
  12. var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true));
  13. curl_close($ch);
  14. ?>
  15. --EXPECT--
  16. bool(true)