com php-src: Skip test when --with-curlwrappers enabled.: ext/standard/tests/streams/bug64433.phpt

From: Date: Sun, 31 Mar 2013 13:22:48 +0000
Subject: com php-src: Skip test when --with-curlwrappers enabled.: ext/standard/tests/streams/bug64433.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-71817@lists.php.net to get a copy of this message
Commit: 72426a446d7630c37f8337f71c81f508647b4f1b Author: Xinchen Hui <laruence@php.net> Sun, 31 Mar 2013 21:22:48 +0800 Parents: 1d4fcdff9f8a5b183cd99295f330bb92dbcf1105 Branches: PHP-5.4 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=72426a446d7630c37f8337f71c81f508647b4f1b Log: Skip test when --with-curlwrappers enabled. Changed paths: M ext/standard/tests/streams/bug64433.phpt Diff: diff --git a/ext/standard/tests/streams/bug64433.phpt b/ext/standard/tests/streams/bug64433.phpt index 9f6e410..a1bf219 100644 --- a/ext/standard/tests/streams/bug64433.phpt +++ b/ext/standard/tests/streams/bug64433.phpt @@ -2,10 +2,18 @@ Bug #60180 ($_SERVER["PHP_SELF"] incorrect) --SKIPIF-- <?php -if(!file_exists(dirname(__FILE__)."/../../../../sapi/cli/tests/php_cli_server.inc")) die("skip"); +if(!file_exists(dirname(__FILE__)."/../../../../sapi/cli/tests/php_cli_server.inc")) + die("skip could not found cli server script"); $res = @include dirname(__FILE__)."/../../../../sapi/cli/tests/php_cli_server.inc"; if(!$res) { - die("skip"); + die("skip could not open cli server script"); +} + +ob_start(); +phpinfo(); +$curlwrappers = preg_match("/with-curlwrappers/", ob_get_clean()); +if ($curlwrappers) { + die("skip curl wrappers used"); } ?> --FILE--

« previous php.cvs (#71817) next »