xref: /PHP-5.5/ext/exif/tests/bug72618.phpt (revision 41131cd4)
1--TEST--
2Bug 72618 (NULL Pointer Dereference in exif_process_user_comment)
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--FILE--
6<?php
7var_dump(count(exif_read_data(dirname(__FILE__) . "/bug72618.jpg")));
8?>
9--EXPECTF--
10Warning: exif_read_data(bug72618.jpg): IFD data bad offset: 0x058E length 0x0030 in %s/bug72618.php on line %d
11int(13)