From:             gms08701 at yahoo dot com
Operating system: FreeBSD 4.8-RELEASE-p3
PHP version:      4.3.3
PHP Bug Type:     *General Issues
Bug description:  Problem with get_included_files

Description:
------------
Using get_included_files() function returns an array of 
included/required files *plus* the file being accessed via the url.
When reading the manual ->
Returns an array of the names of all files that have been included using
include(), include_once(), require()  or require_once()

So going strictly by that, this extra file shouldn't be in the result
array.
I came across similar reports in the bugs database, but they all suggest
that the problem was fixed.

Thanks for your time

Reproduce code:
---------------
a.php
----
<?php
?>

b.php
----
<?php

include('./a.php');
var_dump(get_included_files());

?>

Expected result:
----------------
When viewing b.php, I should be getting ->

array(1) { [0]=>  string(27) "/files/www/data/crash/a.php" }

Actual result:
--------------
When viewing b.php, Im getting ->

array(2) { [0]=>  string(27) "/files/www/data/crash/b.php" [1]=> 
string(27) "/files/www/data/crash/a.php" }

-- 
Edit bug report at http://bugs.php.net/?id=25658&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25658&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25658&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25658&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25658&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25658&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25658&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25658&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25658&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25658&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25658&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25658&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25658&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25658&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25658&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25658&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25658&r=float

Reply via email to