xref: /PHP-5.5/ext/exif/tests/bug48378.phpt (revision f002287e)
1--TEST--
2Bug #48378 (Infinite recursion due to corrupt JPEG)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7exif_read_data(
8dirname(__FILE__) . "/bug48378.jpeg",
9"FILE,COMPUTED,ANY_TAG"
10);
11?>
12--EXPECTF--
13Warning: exif_read_data(%s): Invalid IFD start in %s48378.php on line %d
14
15Warning: exif_read_data(%s): Error reading from file: got=x08B4(=2228) != itemlen-2=x1FFE(=8190) in %s48378.php on line %d
16
17Warning: exif_read_data(%s): Invalid JPEG file in %s48378.php on line %d
18
19
20