xref: /PHP-7.2/ext/standard/tests/image/bug79877.phpt (revision ff577b04)
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