Bug #66804 [Opn->Fbk]: function.apache-lookup-uri.php
Edit report at https://bugs.php.net/bug.php?id=66804&edit=1
ID: 66804
Updated by: requinix@php.net
Reported by: r dot mbiama at angosso dot net
Summary: function.apache-lookup-uri.php
-Status: Open
+Status: Feedback
Type: Bug
Package: Apache2 related
Operating System: Linux
PHP Version: str_size_and_int64 branch
Block user comment: N
Private report: N
New Comment:
You're not understanding how this is supposed to work. You have to EXPLAIN what is going on.
EXPLAIN what the problem is and, if it's not obvious, why it is a problem. All you've done
so far is copy and paste one sentence from the documentation for apache_lookup_uri().
So. What is the point of this bug report? Where is the bug you're reporting?
Previous Comments:
------------------------------------------------------------------------
[2014-03-01 22:40:11] r dot mbiama at angosso dot net
Log i must have PHP configured with --enable-debug and fixed Package memory manager.
# file /usr/local/apache2/bin/httpd
/usr/local/apache2/bin/httpd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux
3.11.0-17, dynamically linked (uses shared libs), not stripped
#31-Ubuntu SMP Mon Feb 3 21:53:31 UTC 2014
------------------------------------------------------------------------
[2014-03-01 20:00:39] requinix@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2014-03-01 16:07:52] r dot mbiama at angosso dot net
Description:
------------
object apache_lookup_uri ( string $filename )
This function is only supported when PHP is installed as an Apache module.
Expected result:
----------------
<?php
$info = apache_lookup_uri('index3.php?var=value');
print_r($info);
if (file_exists($info->filename)) {
echo 'file exists!';
}
stdClass Object
(
[status] => 200
[the_request] => GET /dir/file.php HTTP/1.1
[method] => GET
[unparsed_uri] => /dir/index3.php?var=value
[uri] => /dir/index3.php
[filename] => /home/angosson/htdocs/dir/index.php
[args] => var=value
[allowed] => 0
[sent_bodyct] => 0
[bytes_sent] => 0
[request_time] => 1074282764
)
file exists!
status
the_request
status_line
method
content_type
handler
uri
filename
path_info
args
boundary
no_cache
no_local_copy
allowed
send_bodyct
bytes_sent
byterange
clength
unparsed_uri
mtime
request_time
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66804&edit=1
Thread (7 messages)