#23437 [Opn->Bgs]: apache_lookup_uri returns bogus information
| From: | sniper@php.net | Date: | Thu, 01 May 2003 23:41:59 +0000 |
| Subject: | #23437 [Opn->Bgs]: apache_lookup_uri returns bogus information | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38907@lists.php.net to get a copy of this message | ||
ID: 23437
Updated by: sniper@php.net
Reported By: nik at nikmakepeace dot com
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: Debian GNU/Linux (sid)
PHP Version: 4.3.2RC1
New Comment:
It's not bogus. You just misundertood what the function
is for..(it works locally to YOUR server)
Previous Comments:
------------------------------------------------------------------------
[2003-05-01 06:38:49] nik at nikmakepeace dot com
With Apache 1.3.26 performing
apache_lookup_uri("http://nikmakepeace.com/index.php") returns
a class
like this:
stdClass Object
(
[status] => 200
[the_request] => GET /apache.php HTTP/1.1
[method] => GET
[uri] => /http://nikmakepeace.com/index.php
[filename] => /home/nik/html/test/http:
[path_info] => //nikmakepeace.com/index.php
[no_cache] => 0
[no_local_copy] => 1
[allowed] => 0
[sent_bodyct] => 0
[bytes_sent] => 0
[byterange] => 0
[clength] => 0
[unparsed_uri] => /http://nikmakepeace.com/index.php
[request_time] => 1051788489
)
The uri is not a uri, nor the filename a filename. The content-length
it not 0 etc etc. If this is an Apache bug, can you mention something
in the documentation about it?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23437&edit=1