summaryrefslogtreecommitdiff
path: root/ext/exif
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-08-01 12:51:56 +0200
committerAnatol Belski <ab@php.net>2017-08-01 12:51:56 +0200
commit29ab1dc95a9c53c02bc9e6fc75d398f9e8a7be27 (patch)
tree1f9908323f72365f34684e4803528c51d1678521 /ext/exif
parentf30506c8ff21a9246016a2ec928ca53e64ef07c0 (diff)
parentb8da481a2a08ee65a2190ca1e1fc6e89e0ace457 (diff)
downloadphp-git-29ab1dc95a9c53c02bc9e6fc75d398f9e8a7be27.tar.gz
Merge branch 'PHP-7.2'
* PHP-7.2: Test to cover the change in ce1a0d97
Diffstat (limited to 'ext/exif')
-rw-r--r--ext/exif/tests/exif_read_data_0.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/exif/tests/exif_read_data_0.phpt b/ext/exif/tests/exif_read_data_0.phpt
new file mode 100644
index 0000000000..3208046b03
--- /dev/null
+++ b/ext/exif/tests/exif_read_data_0.phpt
@@ -0,0 +1,14 @@
+--TEST--
+Test exif_read_data on unavailable file
+--SKIPIF--
+<?php if (!extension_loaded('exif')) print 'skip exif extension not available';?>
+--FILE--
+<?php
+$infile = dirname(__FILE__).'/bug73115.JPG';
+exif_read_data($infile);
+?>
+===DONE===
+--EXPECTF--
+Warning: exif_read_data(): Unable to open file in %sexif_read_data_0.php on line %d
+===DONE===
+