1--TEST-- 2Bug #13213 (GetImageSize and wrong JPEG Comments) 3--FILE-- 4<?php 5var_dump(GetImageSize(dirname(__FILE__).'/bug13213.jpg')); 6?> 7--EXPECTF-- 8Warning: getimagesize(): corrupt JPEG data: 2 extraneous bytes before marker in %s%ebug13213.php on line %d 9array(7) { 10 [0]=> 11 int(1) 12 [1]=> 13 int(1) 14 [2]=> 15 int(2) 16 [3]=> 17 string(20) "width="1" height="1"" 18 ["bits"]=> 19 int(8) 20 ["channels"]=> 21 int(3) 22 ["mime"]=> 23 string(10) "image/jpeg" 24} 25