Bug #66804 [NEW]: function.apache-lookup-uri.php
| From: | r dot mbiama at angosso dot net | Date: | Sat, 01 Mar 2014 16:07:53 +0000 |
| Subject: | Bug #66804 [NEW]: function.apache-lookup-uri.php | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-184486@lists.php.net to get a copy of this message | ||
From: r dot mbiama at angosso dot net
Operating system: Linux
PHP version: str_size_and_int64 branch
Package: Apache2 related
Bug Type: Bug
Bug description:function.apache-lookup-uri.php
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 bug report at https://bugs.php.net/bug.php?id=66804&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66804&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66804&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66804&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66804&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66804&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66804&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66804&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66804&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66804&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66804&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66804&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66804&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66804&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66804&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66804&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66804&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66804&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66804&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66804&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66804&r=mysqlcfg