mirror of
https://github.com/php/php-src.git
synced 2024-10-02 07:16:11 +00:00
dd8e59da8f
* Removed ini options, safe_mode* * Removed --enable-safe-mode --with-exec-dir configure options on Unix * Updated extensions, SAPI's and core * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
23 lines
537 B
PHP
23 lines
537 B
PHP
--TEST--
|
|
CURLOPT_FOLLOWLOCATION case check open_basedir
|
|
--CREDITS--
|
|
WHITE new media architects - Dennis
|
|
--INI--
|
|
open_basedir = DIRECTORY_SEPARATOR."tmp";
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("curl")) print "skip cURL not loaded";
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
print (ini_get("OPEN_BASEDIR"));
|
|
$ch = curl_init();
|
|
$succes = curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
|
curl_close($ch);
|
|
var_dump($succes);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set in %s.php on line %d
|
|
bool(false)
|
|
|