Annotation of embedaddon/php/ext/standard/tests/file/bug39863.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #39863 (file_exists() silently truncates after a null byte)
                      3: --CREDITS--
                      4: Andrew van der Stock, vanderaj @ owasp.org
                      5: --FILE--
                      6: <?php
                      7: 
                      8: $filename = __FILE__ . chr(0). ".ridiculous";
                      9: 
                     10: if (file_exists($filename)) {
                     11:     echo "FAIL\n";
                     12: }
                     13: else {
                     14:     echo "PASS\n";
                     15: }
                     16: ?>
                     17: ===DONE===
                     18: <?php exit(0); ?>
                     19: --EXPECT--
                     20: PASS
                     21: ===DONE===
                     22: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>