1--TEST--
2Bug #39863 (file_exists() silently truncates after a null byte)
3--CREDITS--
4Andrew van der Stock, vanderaj @ owasp.org
5--FILE--
6<?php
7
8$filename = __FILE__ . chr(0). ".ridiculous";
9var_dump(file_exists($filename));
10?>
11--EXPECT--
12bool(false)
13