ID:               42912
 User updated by:  administrator dot bau at josephinum dot at
 Reported By:      administrator dot bau at josephinum dot at
 Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Windows 2003 SP2
 PHP Version:      5.2.4
 New Comment:

Edit some of the Sample Code from and PHP irc chanel for testing
purpose
<?php
        $file='fileadmin/template/loadme.html';
        ini_set("include_path", "/fileadmin/template");
        clearstatcache();
        if (is_File($file))     {
                        echo ('File Exists:'.$file.'<br>');
                }else{
                        echo('File ERROR:'.$file.'<br>');
                }
        include_once($file);
        echo('<br>Loaded at'.date("r"));
?>


Previous Comments:
------------------------------------------------------------------------

[2007-10-10 13:06:58] administrator dot bau at josephinum dot at

Looks similar to Bug ID:40818

but i have 5.2.4

I keep going on trail and error :-)

------------------------------------------------------------------------

[2007-10-10 12:19:27] administrator dot bau at josephinum dot at

After IIS restart

When i first Open the Page with Admin Rights the it Shows "File Exists"
after that i Open it with User Rights and it Shows "File Exists"

Again IIS Restart

BUT First open with user Rigths it Shows "File Error" after i open it
with Admin Rights then it Shows File Exists with User rights.

i keep looking for it, i hope someone can help me.

------------------------------------------------------------------------

[2007-10-10 11:25:50] administrator dot bau at josephinum dot at

When i Reload the Page Reload Fast enough(under a half second) i become
True sometimes, but when i Relod the Page Every Second i become alwayse
false.

But the HTML File get included

------------------------------------------------------------------------

[2007-10-10 08:13:40] administrator dot bau at josephinum dot at

Ohh i forgot

IIS 6.0 + PHP ISAPI Module Sorry :-)

------------------------------------------------------------------------

[2007-10-10 07:57:38] administrator dot bau at josephinum dot at

Description:
------------
Windows 2003 SP2 / IIS 6.0 / PHP 5.2.4
Anonymous Auth OFF
Basic Auth,NTLM Auth ON

With a Higher Right User(Admin) file_exsists Work Correctly, but with a
Lower Right User file_exists Return False but the HTML File get
Included.

So it the File must be Checkable if Exists

I tripplecheck since 4 Days the Security Settings, also trying to
figure it out with NT Filemon for Accses Denieds

Find this Error(Is it a Bug?) by try to Securing :-) an Typo3 Website
with NTLM and SSL for Internal Authentification

This Error Stops Typo3 from loading External Files, because of @is_File
= False



Reproduce code:
---------------
<?php
        $file='fileadmin/template/main.html';
        clearstatcache();
        if (@is_File("".$file)) {
                        echo ('File Exists:'.$file);
                }else{
                        echo('File ERROR:'.$file);
                }
        include_once($file);
        echo('Loaded');
?>

Expected result:
----------------
File Exists:fileadmin/template/main.html
<The HTML Code>
Loaded

Actual result:
--------------
File Error:fileadmin/template/main.html
<The HTML Code>
Loaded


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42912&edit=1

Reply via email to