php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48497 handling mirrors that do not support external searches
Submitted: 2009-06-08 16:31 UTC Modified: 2009-10-05 23:01 UTC
From: pgl at yoyo dot org Assigned:
Status: Closed Package: Website problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pgl at yoyo dot org
New email:
PHP Version: OS:

 

 [2009-06-08 16:31 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-06-14 17:15 UTC] philip@php.net
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
- ...
 [2009-06-22 21:23 UTC] pgl at yoyo dot org
Could this mirror at least be removed from the list until they've fixed the issues? I might be in a minority here, but searching using the familiar php.net/<term> is failing one in three time. This isn't the default behaviour -- I've configured my.php.net to search the online documentation rather than the function list by default -- but still..?
 [2009-06-22 22:05 UTC] bjori@php.net
You can pick your preferred mirror on http://php.net/my.php to make php.net/<search> work for you again.


 [2009-10-05 23:01 UTC] danbrown@php.net
This was fixed months ago, but the status was never updated.  Closing 
now.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 04:00:01 2026 UTC