xref: /PHP-7.0/ext/curl/tests/bug65646.phpt (revision fba290c0)
1--TEST--
2Bug #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir disabled
3--SKIPIF--
4<?php
5if (!extension_loaded('curl')) exit("skip curl extension not loaded");
6if (ini_get('open_basedir')) exit("skip open_basedir is set");
7?>
8--FILE--
9<?php
10$ch = curl_init();
11var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true));
12curl_close($ch);
13?>
14--EXPECT--
15bool(true)
16