|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-05-10 12:00 UTC] crrodriguez at opensuse dot org
Description: ------------ if you use example 1 of the documentation http_redirect does not return the expected result Reproduce code: --------------- http://php.net/http_redirect Expected result: ---------------- correct http redirect Actual result: -------------- http://www.cristianrodriguez.net/index2.php see the resulting URL Redirecting to spr-itunes://www.cristianrodriguez.net/relpath?name=value. using abolute url as first param works correctly. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 23:00:01 2025 UTC |
I've encountered the same problem. package: pecl_http 1.6.5 os: Fedora 11 php: php.i586 5.2.9-2.fc11 Reproduce code: --------------- <?php http_redirect("foo.html"); ?> Expected result: ---------------- Redirecting to <a href="http://localhost.localdomain/foo.html">http://localhost.localdomain/foo.html</a>. Actual result: -------------- Redirecting to <a href="spr-itunes://localhost.localdomain/foo.html">spr-itunes://localhost.localdomain/foo.html</a>. If following line is defined in /etc/services, http_redirect("foo.html") result was actual one. spr-itunes 0/tcp spl-itunes # Shirt Pocket netTunes If commented out this line, the result was expected one. This line is defined in default /etc/services file of Fedora 11.