com php-src: Fix test: ext/exif/tests/bug76557.phpt
| From: | Stanislav Malyshev | Date: | Tue, 17 Jul 2018 01:52:01 +0000 |
| Subject: | com php-src: Fix test: ext/exif/tests/bug76557.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102571@lists.php.net to get a copy of this message | ||
Commit: ebd5f56442e79320f124bcae1aeaf1e820d87c76
Author: Stanislav Malyshev <stas@php.net> Mon, 16 Jul 2018 18:52:01 -0700
Parents: a536d6d61b3fde45a4b15a53c07522a4a97f1e88
Branches: PHP-7.2 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ebd5f56442e79320f124bcae1aeaf1e820d87c76
Log:
Fix test
Changed paths:
M ext/exif/tests/bug76557.phpt
Diff:
diff --git a/ext/exif/tests/bug76557.phpt b/ext/exif/tests/bug76557.phpt
index 4553b62..0b48b79 100644
--- a/ext/exif/tests/bug76557.phpt
+++ b/ext/exif/tests/bug76557.phpt
@@ -4,7 +4,7 @@ Bug 76557 (heap-buffer-overflow (READ of size 48) while reading exif data)
<?php if (!extension_loaded('exif')) print 'skip exif extension not
available';?>
--FILE--
<?php
-var_dump(count(exif_read_data(dirname(__FILE__) . "/bug76557.jpg")));
+var_dump(exif_read_data(dirname(__FILE__) . "/bug76557.jpg"));
?>
DONE
--EXPECTF--
@@ -75,5 +75,5 @@ Warning: exif_read_data(bug76557.jpg): Process tag(x3030=UndefinedTa): Illegal p
Warning: exif_read_data(bug76557.jpg): File structure corrupted in %sbug76557.php on line %d
Warning: exif_read_data(bug76557.jpg): Invalid JPEG file in %sbug76557.php on line %d
-int(1)
+bool(false)
DONE