File tree Expand file tree Collapse file tree 6 files changed +73
-0
lines changed
Expand file tree Collapse file tree 6 files changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ Bug 62523 (php crashes with segfault when exif_read_data called)
3+ --SKIPIF--
4+ <?php
5+ extension_loaded ("exif " ) or die ("skip need exif " );
6+ ?>
7+ --FILE--
8+ <?php
9+ echo "Test \n" ;
10+ var_dump (count (exif_read_data (__DIR__ ."/bug62523_1.jpg " )));
11+ ?>
12+ Done
13+ --EXPECTF--
14+ Test
15+
16+ Warning: exif_read_data(bug62523_1.jpg): File not supported in %sbug62523_1.php on line %d
17+ int(1)
18+ Done
Original file line number Diff line number Diff line change 1+ --TEST--
2+ Bug 62523 (php crashes with segfault when exif_read_data called)
3+ --SKIPIF--
4+ <?php
5+ extension_loaded ("exif " ) or die ("skip need exif " );
6+ ?>
7+ --FILE--
8+ <?php
9+ echo "Test \n" ;
10+ var_dump (count (exif_read_data (__DIR__ ."/bug62523_2.jpg " )));
11+ ?>
12+ Done
13+ --EXPECT--
14+ Test
15+ int(76)
16+ Done
Original file line number Diff line number Diff line change 1+ --TEST--
2+ Bug 62523 (php crashes with segfault when exif_read_data called)
3+ --SKIPIF--
4+ <?php
5+ extension_loaded ("exif " ) or die ("skip need exif " );
6+ ?>
7+ --FILE--
8+ <?php
9+ echo "Test \n" ;
10+ var_dump (count (exif_read_data (__DIR__ ."/bug62523_3.jpg " )));
11+ ?>
12+ Done
13+ --EXPECTF--
14+ Test
15+
16+ Warning: exif_read_data(bug62523_3.jpg): File not supported in %sbug62523_3.php on line %d
17+ int(1)
18+ Done
You can’t perform that action at this time.
0 commit comments