Skip to content

Commit

Permalink
fix test portability and expectation
Browse files Browse the repository at this point in the history
The test images for #72603 and #72618 are broken, that seems to be
the cause of different test output. Seems also to be platform dependent,
so it's not reliable to depend on the exact error output.
  • Loading branch information
weltling committed Jul 19, 2016
1 parent b25009f commit bd19195
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ext/exif/tests/bug62523_2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Done
--EXPECTF--
Test

Warning: exif_read_data(bug62523_2.jpg): IFD data bad offset: 0xADB23672 length 0x0D94 in %s/bug62523_2.php on line %d
Warning: exif_read_data(bug62523_2.jpg): IFD data bad offset: 0xADB23672 length 0x0D94 in %s%ebug62523_2.php on line %d
int(30)
Done
4 changes: 2 additions & 2 deletions ext/exif/tests/bug72603.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Bug #72603 (Out of bound read in exif_process_IFD_in_MAKERNOTE)
var_dump(count(exif_read_data(dirname(__FILE__) . "/bug72603.jpeg")));
?>
--EXPECTF--
Warning: exif_read_data(bug72603.jpeg): IFD data bad offset: 0x058C length 0x001C in %s/bug72603.php on line %d
int(13)
Warning: exif_read_data(bug72603.jpeg): %s in %s%ebug72603.php on line %d
int(%d)
4 changes: 2 additions & 2 deletions ext/exif/tests/bug72618.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Bug 72618 (NULL Pointer Dereference in exif_process_user_comment)
var_dump(count(exif_read_data(dirname(__FILE__) . "/bug72618.jpg")));
?>
--EXPECTF--
Warning: exif_read_data(bug72618.jpg): IFD data bad offset: 0x058E length 0x0030 in %s/bug72618.php on line %d
int(13)
Warning: exif_read_data(bug72618.jpg): %s in %s%ebug72618.php on line %d
int(%d)

0 comments on commit bd19195

Please sign in to comment.