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--EXTENSIONS--
6curl
7--FILE--
8<?php
9$ch = curl_init();
10var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true));
11var_dump(curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_FILE));
12var_dump(curl_setopt($ch, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_FILE));
13curl_close($ch);
14?>
15--EXPECTF--
16bool(true)
17
18Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on line %d
19bool(false)
20
21Warning: curl_setopt(): CURLPROTO_FILE cannot be activated when an open_basedir is set in %s on line %d
22bool(false)
23