summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShein Alexey <shein@php.net>2011-05-31 12:45:00 +0000
committerShein Alexey <shein@php.net>2011-05-31 12:45:00 +0000
commitf8484236086ced440f07a5631ff84aab5fe0b563 (patch)
treef27439a12054138feb1fc55c3de4cc93c1c39b9e
parentc270347c0b3e45d652c16e01dc2e8dc8bb203b7b (diff)
downloadphp-git-f8484236086ced440f07a5631ff84aab5fe0b563.tar.gz
Removed test since there's no more safe_mode in PHP >= 5.4.
-rw-r--r--ext/curl/tests/curl_setopt_basic001.phpt35
1 files changed, 0 insertions, 35 deletions
diff --git a/ext/curl/tests/curl_setopt_basic001.phpt b/ext/curl/tests/curl_setopt_basic001.phpt
deleted file mode 100644
index 7b7ab0c576..0000000000
--- a/ext/curl/tests/curl_setopt_basic001.phpt
+++ /dev/null
@@ -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)
-