1--TEST--
2Bug #65646 (re-enable CURLOPT_FOLLOWLOCATION with open_basedir or safe_mode): open_basedir enabled; curl >= 7.19.4
3--INI--
4open_basedir=.
5--SKIPIF--
6<?php
7if (!extension_loaded('curl')) exit("skip curl extension not loaded");
8?>
9--FILE--
10<?php
11$ch = curl_init();
12var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true));
13var_dump(curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_FILE));
14var_dump(curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_FILE));
15curl_close($ch);
16?>
17--EXPECTF--
18bool(true)
19
20Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on line %d
21bool(false)
22
23Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on line %d
24bool(false)
25