Annotation of embedaddon/php/ext/exif/tests/bug34704.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #34704 (Infinite recursion due to corrupt JPEG)
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
! 5: --INI--
! 6: magic_quotes_runtime=0
! 7: output_handler=
! 8: zlib.output_compression=0
! 9: --FILE--
! 10: <?php
! 11: $infile = dirname(__FILE__).'/bug34704.jpg';
! 12: var_dump(exif_read_data($infile));
! 13: ?>
! 14: ===DONE===
! 15: --EXPECTF--
! 16: array(7) {
! 17: ["FileName"]=>
! 18: string(12) "bug34704.jpg"
! 19: ["FileDateTime"]=>
! 20: int(%d)
! 21: ["FileSize"]=>
! 22: int(9976)
! 23: ["FileType"]=>
! 24: int(2)
! 25: ["MimeType"]=>
! 26: string(10) "image/jpeg"
! 27: ["SectionsFound"]=>
! 28: string(4) "IFD0"
! 29: ["COMPUTED"]=>
! 30: array(5) {
! 31: ["html"]=>
! 32: string(24) "width="386" height="488""
! 33: ["Height"]=>
! 34: int(488)
! 35: ["Width"]=>
! 36: int(386)
! 37: ["IsColor"]=>
! 38: int(1)
! 39: ["ByteOrderMotorola"]=>
! 40: int(0)
! 41: }
! 42: }
! 43: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>