1--TEST--
2exif_thumbnail() with streams test
3--SKIPIF--
4<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
5--INI--
6output_handler=
7zlib.output_compression=0
8--FILE--
9<?php
10$fp = fopen(__DIR__ . '/sony.jpg', 'rb');
11
12var_dump(strlen(exif_thumbnail($fp)));
13
14fclose($fp);
15?>
16--EXPECT--
17int(4150)
18