From d33f4c6eb8916567028301d53b71a8d60664de4a Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Thu, 5 Feb 2015 00:06:25 -0800 Subject: [PATCH] fix test to not hit php.net --- ext/standard/tests/network/http-stream.phpt | 10 ++++++-- ext/standard/tests/network/news.rss | 28 +++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 ext/standard/tests/network/news.rss diff --git a/ext/standard/tests/network/http-stream.phpt b/ext/standard/tests/network/http-stream.phpt index 99245f709e..1186060096 100644 --- a/ext/standard/tests/network/http-stream.phpt +++ b/ext/standard/tests/network/http-stream.phpt @@ -3,16 +3,22 @@ http-stream test --SKIPIF-- --INI-- allow_url_fopen=1 --FILE-- load("http://php.net/news.rss"); +$e = $d->load("http://127.0.0.1:12342/news.rss"); echo "ALIVE\n"; +http_server_kill($pid); ?> --EXPECTF-- ALIVE diff --git a/ext/standard/tests/network/news.rss b/ext/standard/tests/network/news.rss new file mode 100644 index 0000000000..f80b82cbd7 --- /dev/null +++ b/ext/standard/tests/network/news.rss @@ -0,0 +1,28 @@ +HTTP/1.1 200 OK +Content-Type: text/xml + + + + + PHP: Hypertext Preprocessor + http://php.net/ + The PHP scripting language web site + + + + + + + + + PHP 5.4.37 Released + http://php.net/index.php#id2015-01-22-3 + The PHP development team announces the immediate availability of PHP 5.4.37. Six security-related bugs were fixed in this release, including CVE-2015-0231, CVE-2014-9427 and CVE-2015-0232. All PHP 5.4 users are encouraged to upgrade to this version. For source downloads of PHP 5.4.37 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog. + 2015-01-22 + + + -- 2.40.0