]> granicus.if.org Git - php/commitdiff
Make test case even more resilient
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 4 Jan 2017 10:46:35 +0000 (11:46 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 4 Jan 2017 10:46:35 +0000 (11:46 +0100)
The `components` value may obviously be negative, so we have to cater
to that.

ext/exif/tests/bug73737.phpt

index 149e3e3c5695ff1f8ec3bfa9ebb2f4c5fa8be23e..00860651fccb6a01662f9444dc519e2a29e1c8b7 100644 (file)
@@ -8,7 +8,7 @@ Bug #73737 (Crash when parsing a tag format)
        var_dump($exif);
 ?>
 --EXPECTF--
-Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth ): Illegal components(%d) in %s on line %d
+Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth ): Illegal components(%i) in %s on line %d
 
 Warning: exif_thumbnail(bug73737.tiff): Error in TIFF: filesize(x0030) less than start of IFD dir(x10102) in %s line %d
 bool(false)