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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 19:01:36 2025 UTC