Bug #13293 Updated: fopen()/readfile()/file() URL cannot handle http://host:port/ syntax

From: Date: Mon, 15 Oct 2001 21:53:49 +0000
Subject: Bug #13293 Updated: fopen()/readfile()/file() URL cannot handle http://host:port/ syntax
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67983@lists.php.net to get a copy of this message
ID: 13293 Updated by: edink Reported By: max@corp.liv4now.com Old Status: Open Status: Closed Bug Type: URL related Operating System: Linux (x86) PHP Version: 4.0.6 New Comment: I cannot reproduce this with the latest cvs version. Please try http://snaps.php.net/php4-latest.tar.gz and reopen if the problem persists. It also supports (and it has been doing that for a while) requests of type http://user:pass@host/ Previous Comments: ------------------------------------------------------------------------ [2001-09-13 16:17:46] max@corp.liv4now.com This is probably not really bug, just a missing feature. Basically the fopen()URL handler doesn't allow the specification of an alternativ port within the url such as http://hostname:port/path/file.html I guess it will probably also not handle http://user:pass@host/, so maybe you could add that as well sometime. the following script: <?php readfile('http://localhost:8080/'); ?> results in the following output: X-Powered-By: PHP/4.0.6 Content-type: text/html <br> <b>Warning</b>: readfile("http://localhost:8080/") - Success in <b>-</b> on line <b>2</b><br> ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13293&edit=1

« previous php.dev (#67983) next »