Edit report at https://bugs.php.net/bug.php?id=61339&edit=1

 ID:                 61339
 Updated by:         [email protected]
 Reported by:        ziegenberg at web dot de
 Summary:            is_readable() causes crash in special cases
 Status:             Open
 Type:               Bug
 Package:            Filesystem function related
 Operating System:   Windows 7 Pro 64bit
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

And how is the path? 

Are you sure it is is_readable and not the include/require function which 
crashes?


Previous Comments:
------------------------------------------------------------------------
[2012-03-10 09:47:40] ziegenberg at web dot de

Description:
------------
While I was working on some simple HTML templates I suddently got an error. 
Apache (2.2.22 or 2.4.1, both from apachelounge.com) didn't reply my request 
anymore. 

I spend hours with debugging and found the cause for the bug: a call of the 
is_readable() function, which checked the template file I have been working on.

After further checks I found the "problem" in the file: 
8 simple spaces, added by the editor as line indent.

If I remove the spaces, everything works fine. If I add the spaces, php ends 
processing when calling is_readable() on the file. I can repeat it as often as 
I want - it's the same file, in the same directory, with the same rights.

I wanted to create an example for you, but if I copy the file to another path, 
the error doesn't occur anymore. So the problem seems to be dependent of the 
file's path and content. Also PHP doesn't create an error, it just aborts the 
request (and the shutdown function isn't called).

Test script:
---------------
sorry, not possible

Expected result:
----------------
TRUE for the call of is_readable(), as the file exists and is readable

Actual result:
--------------
crash


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



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

Reply via email to