xref: /PHP-8.1/ext/exif/tests/bug79282.phpt (revision bd9f4fa6)
1--TEST--
2Bug #79282: Use-of-uninitialized-value in exif
3--EXTENSIONS--
4exif
5--FILE--
6<?php
7
8var_dump(exif_read_data('data://image/jpeg;base64,/9jhAAlFeGlmAAAg'));
9
10?>
11--EXPECTF--
12Warning: exif_read_data(): Missing TIFF alignment marker in %s on line %d
13
14Warning: exif_read_data(): File structure corrupted in %s on line %d
15
16Warning: exif_read_data(): Invalid JPEG file in %s on line %d
17bool(false)
18