From: Operating system: Windows 7 Pro 64bit PHP version: 5.3.10 Package: Filesystem function related Bug Type: Bug Bug description:is_readable() causes crash in special cases
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 bug report at https://bugs.php.net/bug.php?id=61339&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61339&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61339&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61339&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=61339&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61339&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=61339&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=61339&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=61339&r=needscript Try newer version: https://bugs.php.net/fix.php?id=61339&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=61339&r=support Expected behavior: https://bugs.php.net/fix.php?id=61339&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=61339&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=61339&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=61339&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61339&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=61339&r=dst IIS Stability: https://bugs.php.net/fix.php?id=61339&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=61339&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=61339&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=61339&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=61339&r=mysqlcfg
