1--TEST--
2Overflow in float to int cast
3--EXTENSIONS--
4exif
5--FILE--
6<?php
7
8var_dump(@exif_read_data(__DIR__ . '/float_cast_overflow.tiff'));
9
10?>
11--EXPECTF--
12array(8) {
13  ["FileName"]=>
14  string(24) "float_cast_overflow.tiff"
15  ["FileDateTime"]=>
16  int(%d)
17  ["FileSize"]=>
18  int(142)
19  ["FileType"]=>
20  int(7)
21  ["MimeType"]=>
22  string(10) "image/tiff"
23  ["SectionsFound"]=>
24  string(24) "ANY_TAG, IFD0, THUMBNAIL"
25  ["COMPUTED"]=>
26  array(5) {
27    ["html"]=>
28    string(20) "width="1" height="1""
29    ["Height"]=>
30    int(1)
31    ["Width"]=>
32    int(1)
33    ["IsColor"]=>
34    int(0)
35    ["ByteOrderMotorola"]=>
36    int(0)
37  }
38  ["THUMBNAIL"]=>
39  array(2) {
40    ["ImageWidth"]=>
41    int(1)
42    ["ImageLength"]=>
43    float(-2.5961487387524236E+33)
44  }
45}
46