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"); 8if (version_compare(curl_version()['version'], '7.19.4', '>=')) exit("skip curl version is too new"); 9?> 10--FILE-- 11<?php 12$ch = curl_init(); 13var_dump(curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true)); 14curl_close($ch); 15?> 16--EXPECTF-- 17Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in %s on line %d 18bool(false) 19