#48497 [Opn->Ver]: handling mirrors that do not support external searches

From: Date: Sun, 14 Jun 2009 17:15:20 +0000
Subject: #48497 [Opn->Ver]: handling mirrors that do not support external searches
References: 1  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-5034@lists.php.net to get a copy of this message
ID: 48497 Updated by: philip@php.net -Summary: uk3.php.net does not support searches Reported By: pgl at yoyo dot org -Status: Open +Status: Verified Bug Type: Website problem Operating System: N/A PHP Version: Irrelevant New Comment: The provided error for uk3 is: - "Unable to find a way to retrieve data with file_get_contents" Which results from code here: - http://cvs.php.net/viewvc.cgi/phpweb/include/site.inc?view=markup Which typically means the server does not allow external connections, which the search (it uses Yahoo) requires. This may result from firewall issues. This bug was almost fixed once (see bug #46423) but not really, likely due to how we handle time outs (we give them an automatic pass). Code: - http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test Possible solutions: - Rewrite fetch_contents() to better handle this, and provide nice errors (or instead automagically use www.php.net or another mirror) - Fix the mirror-test to work (as per bug #46423) - Rethink how we handle time outs in mirror-test - ... Previous Comments: ------------------------------------------------------------------------ [2009-06-08 16:31:04] pgl at yoyo dot org Description: ------------ When doing a search on uk3.php.net: - http://uk3.php.net/results.php?q=getglobal&p=manual&l=en The following is displayed: "Internal error This mirror does not support searches, please report this error to our webmasters" Reproduce code: --------------- <? echo file_get_contents('http://uk3.php.net/results.php?q=getglobal&p=manual&l=en'); ?> Expected result: ---------------- A search result. Actual result: -------------- Internal error This mirror does not support searches, please report this error to our webmasters ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48497&edit=1

« previous php.webmaster (#5034) next »