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:
@@ -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===
|
||||
|
||||
Reference in New Issue
Block a user