#21448 [Opn->Bgs]: apache_lookup_uri returns "valid URI" even when passed non-existent filenames
| From: | iliaa@php.net | Date: | Mon, 06 Jan 2003 21:49:31 +0000 |
| Subject: | #21448 [Opn->Bgs]: apache_lookup_uri returns "valid URI" even when passed non-existent filenames | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-29244@lists.php.net to get a copy of this message | ||
ID: 21448
Updated by: iliaa@php.net
Reported By: awkay69@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Linux (redhat)
PHP Version: 4.3.0
New Comment:
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.
apache_lookup_uri() is a very simple wrapper around Apache 2's own
ap_sub_req_lookup_uri() function. Any bugs that you encounter while
using that function are in Apache 2 and not PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-01-05 22:11:59] awkay69@hotmail.com
I've played with this some more. I'm beginning to feel that this is a
documentation problem. Neither the Apache or PHP docs say so, but is
this just a parsing function that never actually does a stat(2) on the
underlying file?
I got the impression from the code for virtual() in
php-4.3.0/sapi/apache2filter that it did more, but perhaps it is a
misunderstanding on my part.
This is probably a closable entry in your bug database...sorry.
------------------------------------------------------------------------
[2003-01-05 19:44:13] awkay69@hotmail.com
I compiled Apache 2.0.43 and PHP 4.3.0 from source as a DSO.
When using the internal PHP apache_lookup_uri(), it always returns
status 200.
<?php
$f = apache_lookup_uri("/abcdef");
echo $f->status;
echo $f->the_request;
?>
I always get 200, and the URI of the PHP file in which it is enclosed.
Does anyone know the apache API??? I dug through the source, but I
don't know much about the Apache filter chains and the linkage of the
request structures. I'll try to look further when I get a chance, but
if anyone has any ideas, I'd love to hear them.
- Tony
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21448&edit=1