Bug #73369 [Opn]: file_exists, is_file
| From: | gufophp at gmail dot com | Date: | Fri, 21 Oct 2016 19:39:42 +0000 |
| Subject: | Bug #73369 [Opn]: file_exists, is_file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-204959@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=73369&edit=1
ID: 73369
User updated by: gufophp at gmail dot com
Reported by: gufophp at gmail dot com
Summary: file_exists, is_file
Status: Open
Type: Bug
Package: Scripting Engine problem
Operating System: linux
PHP Version: 5.6.27
Block user comment: N
Private report: N
New Comment:
The bug is real. I not have cut and paste.
Previous Comments:
------------------------------------------------------------------------
[2016-10-21 17:56:51] rasmus@php.net
You need to provide way more information here.
Plus your test script could never work. is_file(file) is missing a $
------------------------------------------------------------------------
[2016-10-21 16:03:35] gufophp at gmail dot com
Description:
------------
incorrect is_file, file_exists
file is accessile
Test script:
---------------
echo $file = "ephp/eph_".$comando.".eph"; // use a relative path not absolute
require ($file);
this found and the file is inluded
if(is_file(file)){
require ($file);
}else{
// echo "il file esiste";
}
Expected result:
----------------
include a file
Actual result:
--------------
il file esiste
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73369&edit=1