1--TEST--
2CURLOPT_FOLLOWLOCATION case check safe_mode and open_basedir
3--CREDITS--
4WHITE new media architects - Dennis
5--INI--
6open_basedir = DIRECTORY_SEPARATOR."tmp";
7--SKIPIF--
8<?php
9if (!extension_loaded("curl")) print "skip cURL not loaded";
10?>
11--FILE--
12<?php
13print (ini_get("OPEN_BASEDIR"));
14$ch = curl_init();
15$succes = curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
16curl_close($ch);
17var_dump($succes);
18?>
19--EXPECTF--
20Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when %r(safe_mode is enabled or an )?%ropen_basedir is set in %s.php on line %d
21bool(false)
22
23