#23437 [Opn->Csd]: apache_lookup_uri returns bogus information
| From: | nlopess@php.net | Date: | Fri, 06 Feb 2004 20:14:09 +0000 |
| Subject: | #23437 [Opn->Csd]: apache_lookup_uri returns bogus information | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969358781@lists.php.net to get a copy of this message | ||
ID: 23437
Updated by: nlopess@php.net
Reported By: nik at nikmakepeace dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Debian GNU/Linux (sid)
PHP Version: 4.3.2RC1
New Comment:
I already documented this function. Closing the bug....
Previous Comments:
------------------------------------------------------------------------
[2003-05-01 22:18:19] nik at nikmakepeace dot com
> it works locally to YOUR server
I understood that much (nikmakepeace.com is my server), but it wasn't
clear inthe documentation that it doesn't actually lookup any local
uri, but only a relatve uri of a document on the local webserver. For
example I get correct results by looking up "/doc/" but not
"http://localhost/doc/" although both are the
same resource on the same
machine.
------------------------------------------------------------------------
[2003-05-01 18:41:58] sniper@php.net
It's not bogus. You just misundertood what the function
is for..(it works locally to YOUR server)
------------------------------------------------------------------------
[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