cvs: phpweb /include site.inc
| From: | Philip Olson | Date: | Sat, 07 Jun 2008 02:34:53 +0000 |
| Subject: | cvs: phpweb /include site.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1882@lists.php.net to get a copy of this message | ||
philip Sat Jun 7 02:34:53 2008 UTC
Modified files:
/phpweb/include site.inc
Log:
reduced mirror requirement from 5.1 to 4.3 (closes bug #45198)
http://cvs.php.net/viewvc.cgi/phpweb/include/site.inc?r1=1.257&r2=1.258&diff_format=u
Index: phpweb/include/site.inc
diff -u phpweb/include/site.inc:1.257 phpweb/include/site.inc:1.258
--- phpweb/include/site.inc:1.257 Fri Jun 6 21:05:12 2008
+++ phpweb/include/site.inc Sat Jun 7 02:34:53 2008
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: site.inc,v 1.257 2008/06/06 21:05:12 bjori Exp $
+// $Id: site.inc,v 1.258 2008/06/07 02:34:53 philip Exp $
// Define $MIRRORS array, and some constants
include $_SERVER['DOCUMENT_ROOT'] . '/include/mirrors.inc';
@@ -179,8 +179,8 @@
if(function_exists('file_get_contents') &&
ini_get('allow_url_fopen')) {
$opts = array('user_agent' => 'php.net',);
- stream_context_get_default(array("http" => $opts));
- $data = @file_get_contents($url);
+ $context = stream_context_create(array('http' => $opts));
+ $data = @file_get_contents($url, false, $context);
if ($headers) {
return $http_response_header;
}