bug13213.phpt 441 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Bug #13213 (GetImageSize and wrong JPEG Comments)
  3. --FILE--
  4. <?php
  5. var_dump(GetImageSize(__DIR__.'/bug13213.jpg'));
  6. ?>
  7. --EXPECTF--
  8. Warning: getimagesize(): Corrupt JPEG data: 2 extraneous bytes before marker in %s%ebug13213.php on line %d
  9. array(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. }