Edit report at https://bugs.php.net/bug.php?id=67931&edit=1
ID: 67931 Updated by: [email protected] Reported by: php at bof dot de Summary: links to variadics on php.net does not redirect to mirror Status: Assigned Type: Bug Package: Website problem PHP Version: Irrelevant Assigned To: tyrael Block user comment: N Private report: N New Comment: It's also producible using "http://..." by adding an "X-Forwarded-For" header. $ curl -v -H 'X-Forwarded-For: 127.0.0.1' http://php.net/functions.arguments.php * About to connect() to php.net port 80 (#0) * Trying 72.52.91.14... connected > GET /functions.arguments.php HTTP/1.1 > User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 > zlib/1.2.3.4 libidn/1.23 librtmp/2.3 > Host: php.net > Accept: */* > X-Forwarded-For: 127.0.0.1 > < HTTP/1.1 302 Found < Server: nginx/1.6.1 < Date: Fri, 29 Aug 2014 11:21:28 GMT < Content-Type: text/html; charset=utf-8 < Content-Length: 0 < Connection: keep-alive < X-Powered-By: PHP/5.5.11-2 < Content-language: en < X-Frame-Options: SAMEORIGIN < Set-Cookie: COUNTRY=EUR%2C127.0.0.1; expires=Fri, 05-Sep-2014 11:21:28 GMT; Max-Age=604800; path=/; domain=.php.net < X-PHP-Load: 3.23, 3.01, 3.12 < Location: http://php.net/search.php?show=404quickref&lang=en&pattern=functions.arguments.php < * Connection #0 to host php.net left intact * Closing connection #0 Previous Comments: ------------------------------------------------------------------------ [2014-08-29 11:24:55] [email protected] https://php.net/functions.arguments seems to be working and from a quick look find_manual_page($LANG, $URI) also expect the $URI to be without any file extension. this still doesn't explain why was it morking for the mirrors or why do you not get redirected to the mirror in some cases. I'm gonna update the NEWS entry with the removal of the .php suffix and that should solve the issue though. ------------------------------------------------------------------------ [2014-08-29 10:54:15] [email protected] I had a hard time reproducing the problem, as I was getting properly redirected to a mirror where the docs are working properly, but it seems that the https url can be used to reproduce the issue consistently: https://www.php.net/functions.arguments.php ------------------------------------------------------------------------ [2014-08-29 10:23:28] php at bof dot de Description: ------------ For me, following the link to the variadic function doc on the frontpage, when visiting http://php.net, misdirects to the manual lookup page on php.net, instead of redirecting to the right page on a mirror. Ferenc asked me to report this here. The issue depends on my IP; I'm using German T-Online with IP 91.53.9.6 at the moment, when it does not work. See expected/actual results, "expected" from a different IP address somewhere else in Germany, "actual" from my home IP. (NOTE: I manually added spaces between "http" and "://php.net..." below, because otherwise the bug tracker tells me "SPAM detected". Sigh. Test script: --------------- wget http ://php.net/functions.arguments.php Expected result: ---------------- patrick@bof1:~> wget http ://php.net/functions.arguments.php asking libproxy about url 'http://php.net/functions.arguments.php' libproxy suggest to use 'direct://' --2014-08-29 12:19:53-- http://php.net/functions.arguments.php Resolving php.net... 72.52.91.14, 2001:470:1:380::3 Connecting to php.net|72.52.91.14|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http ://de2.php.net/functions.arguments.php [following] asking libproxy about url 'http ://de2.php.net/functions.arguments.php' libproxy suggest to use 'direct://' --2014-08-29 12:19:53-- http ://de2.php.net/functions.arguments.php Resolving de2.php.net... 82.100.240.32 Connecting to de2.php.net|82.100.240.32|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: âfunctions.arguments.phpâ [ <=> ] 108,840 530K/s in 0.2s 2014-08-29 12:19:54 (530 KB/s) - âfunctions.arguments.phpâ saved [108840] Actual result: -------------- patrick@rofl:~> wget http ://php.net/functions.arguments.php --2014-08-29 12:19:08-- http ://php.net/functions.arguments.php Resolving php.net (php.net)... 72.52.91.14, 2001:470:1:380::3 Connecting to php.net (php.net)|72.52.91.14|:80... connected. HTTP request sent, awaiting response... 302 Found Location: http ://php.net/search.php?show=404quickref&lang=en&pattern=functions.arguments.php [following] --2014-08-29 12:19:09-- http ://php.net/search.php?show=404quickref&lang=en&pattern=functions.arguments.php Reusing existing connection to php.net:80. HTTP request sent, awaiting response... 302 Found Location: http ://php.net/manual-lookup.php?pattern=functions.arguments.php&lang=en&scope=404quickref [following] --2014-08-29 12:19:09-- http ://php.net/manual-lookup.php?pattern=functions.arguments.php&lang=en&scope=404quickref Reusing existing connection to php.net:80. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: âfunctions.arguments.phpâ [ <=> ] 13,825 65.2KB/s in 0.2s 2014-08-29 12:19:09 (65.2 KB/s) - âfunctions.arguments.phpâ saved [13825] ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67931&edit=1 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
