Bug #66804 [Fbk->Opn]: function.apache-lookup-uri.php

From: Date: Sat, 01 Mar 2014 22:40:12 +0000
Subject: Bug #66804 [Fbk->Opn]: function.apache-lookup-uri.php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184493@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66804&edit=1

 ID:                 66804
 User updated by:    r dot mbiama at angosso dot net
 Reported by:        r dot mbiama at angosso dot net
 Summary:            function.apache-lookup-uri.php
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            Apache2 related
 Operating System:   Linux
 PHP Version:        str_size_and_int64 branch
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#184493) next »