xref: /PHP-8.2/ext/exif/tests/gh16409.phpt (revision 3843f0ec)
1--TEST--
2GH-16409 (Segfault in exif_thumbnail when not dealing with a real file)
3--EXTENSIONS--
4exif
5--FILE--
6<?php
7$stream = popen('echo 1', 'r');
8var_dump(exif_thumbnail($stream, $pipes, $stream, $pipes));
9?>
10--EXPECTF--
11Warning: exif_thumbnail(): File too small (0) in %s on line %d
12bool(false)%A
13