From: <car...@us...> - 2025-02-14 07:44:05
|
Revision: 11106 http://sourceforge.net/p/phpwiki/code/11106 Author: carstenklapp Date: 2025-02-14 07:44:03 +0000 (Fri, 14 Feb 2025) Log Message: ----------- add error output for use with HttpClient.php and PhotoAlbum plugin patch submitted earlier Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2025-02-14 07:32:26 UTC (rev 11105) +++ trunk/lib/stdlib.php 2025-02-14 07:44:03 UTC (rev 11106) @@ -1894,7 +1894,8 @@ function url_get_contents($uri) { if (get_cfg_var('allow_url_fopen')) { // was ini_get('allow_url_fopen')) - return @file_get_contents($uri); + //if (get_cfg_var('allow_url_fopen')||ini_get('allow_url_fopen')) { // was ini_get('allow_url_fopen')) + return @file_get_contents($uri); } else { require_once 'lib/HttpClient.php'; $bits = parse_url($uri); @@ -1907,6 +1908,8 @@ $client = new HttpClient($host, $port); $client->use_gzip = false; if (!$client->get($path)) { + $err= $client->getError(); + return $err;//new return false; } else { return $client->getContent(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |