bug68547.phpt 859 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --TEST--
  2. Bug #68547 (Exif Header component value check error)
  3. --EXTENSIONS--
  4. mbstring
  5. exif
  6. --FILE--
  7. <?php
  8. var_dump(exif_read_data(__DIR__ . DIRECTORY_SEPARATOR . 'bug68547.jpg'));
  9. ?>
  10. --EXPECTF--
  11. array(12) {
  12. ["FileName"]=>
  13. string(12) "bug68547.jpg"
  14. ["FileDateTime"]=>
  15. int(%d)
  16. ["FileSize"]=>
  17. int(713)
  18. ["FileType"]=>
  19. int(2)
  20. ["MimeType"]=>
  21. string(10) "image/jpeg"
  22. ["SectionsFound"]=>
  23. string(20) "ANY_TAG, IFD0, WINXP"
  24. ["COMPUTED"]=>
  25. array(5) {
  26. ["html"]=>
  27. string(20) "width="1" height="1""
  28. ["Height"]=>
  29. int(1)
  30. ["Width"]=>
  31. int(1)
  32. ["IsColor"]=>
  33. int(1)
  34. ["ByteOrderMotorola"]=>
  35. int(0)
  36. }
  37. ["Subject"]=>
  38. string(10) "Subjec??.."
  39. ["Keywords"]=>
  40. string(0) ""
  41. ["Author"]=>
  42. string(9) "Rui Carmo"
  43. ["Comments"]=>
  44. string(29) "Comments
  45. Line2
  46. Line3
  47. Line4"
  48. ["Title"]=>
  49. string(8) "Title..."
  50. }