Bug #16875: FILE Function Checks Wrong Path
| From: | tonicpeddler at cs dot com | Date: | Sat, 27 Apr 2002 17:12:09 +0000 |
| Subject: | Bug #16875: FILE Function Checks Wrong Path | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-6236@lists.php.net to get a copy of this message | ||
From: tonicpeddler@cs.com
Operating system: Windows XP
PHP version: 4.2.0
PHP Bug Type: Filesystem function related
Bug description: FILE Function Checks Wrong Path
When I call:
$data = file( "database.txt" );
From my file "c:\xitami\webpages\db\database.php", php doesn't check
"c:\xitami\webpages\db\" for database.txt, instead it returns an error
saying that "database.txt" doesn't exist in the directory
"c:\xitami\webpages\db\database.php" I beleive this may be a bug, since
it shouldn't be including the name of the php script in the directory. In
the mean time I am specifying an absolute filename for database.txt,
however I'd much prefer the modularity of relative file access.
If you fix it, that's great, I hope someone contacts me. In that case
could someone tell me where to download a prebuilt binary? I'm on dialup
and a pretty slow machine, not very interested in downloading the source
code again, and building, again.
--
Edit bug report at http://bugs.php.net/?id=16875&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16875&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16875&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16875&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16875&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16875&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16875&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16875&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16875&r=submittedtwice