php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26888 my.php could use the mirror closest to proxy instead of user machine
Submitted: 2004-01-12 20:23 UTC Modified: 2004-01-19 16:16 UTC
From: cjbj at hotmail dot com 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: cjbj at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-01-12 20:23 UTC] cjbj at hotmail dot com
Description:
------------
The mirror chosen by php.net seems to be the closest one to my
physical location.  It would be marginally faster/better if the
nearest mirror to the proxy server I am using was chosen.

Although I can choose a mirror on the my.php page, I sometimes need to
change the browser proxy (to one in another country on the corporate
network).  Also, by default, a load balancer automatically chooses the
proxy for me.  These negate the benefits of setting a mirror.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-19 10:36 UTC] goba@php.net
As you can see in the code of i2c_realip() implemented in ip-to-country.inc [1], we try to do our best NOT TO use the proxy server. This is because there might be a proxy server attached to the server to load-balance... Also we need the country information to display events in a special form, so we need the user's country, and not the proxy's country. If we would not select a mirror for you, then you would probably use www.php.net without a thought, and it is in the US. So your autoswitching load-balancer would not be served better that way either...

[1] http://php.net/source.php?url=/include/ip-to-country.inc
 [2004-01-19 16:16 UTC] cjbj at hotmail dot com
No probs.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 18 01:00:02 2026 UTC