summaryrefslogtreecommitdiff
path: root/ext/standard/tests/image/bug79877.phpt
blob: 92e93e59e53e85a50114b3eeacf1cdb4bf4308c8 (plain)
1
2
3
4
5
6
7
8
9
--TEST--
Bug #79877 (getimagesize function silently truncates after a null byte)
--FILE--
<?php
var_dump(getimagesize("/tmp/a.png\0xx"));
?>
--EXPECTF--
Warning: getimagesize(): Invalid path in %s on line %d
NULL