1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00

New test for file_exists (bug #39863). It currently xfail's

This commit is contained in:
Christopher Jones
2010-06-05 19:44:48 +00:00
parent 18dd664e5c
commit 064eda1838
+24
View File
@@ -0,0 +1,24 @@
--TEST--
Bug #39863 (file_exists() silently truncates after a null byte)
--CREDITS--
Andrew van der Stock, vanderaj @ owasp.org
--FILE--
<?php
$filename = __FILE__ . chr(0). ".ridiculous";
if (file_exists($filename)) {
echo "FAIL\n";
}
else {
echo "PASS\n";
}
?>
===DONE===
<?php exit(0); ?>
--XFAIL--
Needs bug #39863 fixed
--EXPECT--
PASS
===DONE===