mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Removed test since there's no more safe_mode in PHP >= 5.4.
This commit is contained in:
parent
33701b76ae
commit
a44a8af3a0
1 changed files with 0 additions and 35 deletions
|
@ -1,35 +0,0 @@
|
|||
--TEST--
|
||||
curl_setopt basic tests.
|
||||
--CREDITS--
|
||||
Paul Sohier
|
||||
#phptestfest utrecht
|
||||
--INI--
|
||||
safe_mode=On
|
||||
--SKIPIF--
|
||||
<?php if (!extension_loaded("curl") || false === getenv('PHP_CURL_HTTP_REMOTE_SERVER') || PHP_VERSION_ID < 503099) print "skip"; ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$host = getenv('PHP_CURL_HTTP_REMOTE_SERVER');
|
||||
|
||||
// start testing
|
||||
echo "*** Testing curl_setopt with CURLOPT_FOLLOWLOCATION in safemode\n";
|
||||
|
||||
$url = "{$host}/";
|
||||
$ch = curl_init();
|
||||
|
||||
ob_start(); // start output buffering
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
||||
|
||||
$curl_content = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
var_dump( $curl_content );
|
||||
?>
|
||||
--EXPECTF--
|
||||
Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
*** Testing curl_setopt with CURLOPT_FOLLOWLOCATION in safemode
|
||||
|
||||
Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in %s on line %d
|
||||
bool(false)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue