php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30809 apache_lookup_uri function problem
Submitted: 2004-11-17 01:43 UTC Modified: 2004-11-17 08:03 UTC
From: animeshrine1134 at yahoo dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.9 OS: windows98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: animeshrine1134 at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-11-17 01:43 UTC] animeshrine1134 at yahoo dot com
Description:
------------
when i use apache_lookup_uri(string filename) on windows, it looks only on the local system for the filename, if i set the filename to "http://www.google.com/" it looks for "/http://www.google.com/"

Reproduce code:
---------------
<?php
$info = apache_lookup_uri('http://www.google.com');
print_r($info);
?>


Actual result:
--------------
stdClass Object
(
    [status] => 403
    [the_request] => GET /uri.php HTTP/1.1
    [method] => GET
    [uri] => /http://www.google.com
    [filename] => c:/www/http:

    [path_info] => //www.google.com
    [no_cache] => 0
    [no_local_copy] => 1
    [allowed] => 0
    [sent_bodyct] => 0
    [bytes_sent] => 0
    [byterange] => 0
    [clength] => 0
    [unparsed_uri] => /http://www.google.com
    [request_time] => 1100650664
)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-17 08:03 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

That's how apache_lookup_uri() works - only with local URIs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 10:01:31 2024 UTC