xref: /PHP-7.2/ext/exif/tests/bug73737.phpt (revision 0fa13028)
1--TEST--
2Bug #73737 (Crash when parsing a tag format)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7	$exif = exif_thumbnail(__DIR__ . '/bug73737.tiff');
8	var_dump($exif);
9?>
10--EXPECTF--
11Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth ): Cannot be empty in %s on line %d
12
13Warning: exif_thumbnail(bug73737.tiff): Error in TIFF: filesize(x0030) less than start of IFD dir(x10102) in %s line %d
14bool(false)
15