From: ncsoft at go dot ro
Operating system: Windows
PHP version: 4.3.1
PHP Bug Type: Feature/Change Request
Bug description: A small problem for refering file.
Description:
------------
//x.php located in /
$is=file_exists("y.php"/*located in / too*/);
//y.php located in /dir/
echo $is;
it shows 0 . all file addresses should be ralated to their first parent .
so the file_exists even if called in y.php in /dir/ should see that it`s
included from / and search it there .
and another problem listed in code section .
Reproduce code:
---------------
<?
$x="xxxxxxxxxx";
function y()
{
echo $x;
}
y();
//shows nothing
?>
Expected result:
----------------
xxxxxxxxxx
--
Edit bug report at http://bugs.php.net/?id=24137&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24137&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24137&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24137&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24137&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24137&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24137&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24137&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24137&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24137&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24137&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24137&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24137&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24137&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24137&r=gnused