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