diff options
author | Craig Duncan <git@duncanc.co.uk> | 2019-08-15 21:47:15 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-08-26 17:25:12 +0200 |
commit | 743591458c8505ea13e2391898cc502702461983 (patch) | |
tree | 531190db35a6846697b1996a88e7e4fc77beae17 /ext/exif/exif.stub.php | |
parent | 5b09e6043c930168cacce3aa37346560be65d8b3 (diff) | |
download | php-git-743591458c8505ea13e2391898cc502702461983.tar.gz |
Convert exif functions arginfo to php stubs
We also allow sections needed to be null.
Diffstat (limited to 'ext/exif/exif.stub.php')
-rw-r--r-- | ext/exif/exif.stub.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/exif/exif.stub.php b/ext/exif/exif.stub.php new file mode 100644 index 0000000000..a878c3c3ff --- /dev/null +++ b/ext/exif/exif.stub.php @@ -0,0 +1,13 @@ +<?php + +/** @return string|false */ +function exif_tagname(int $index) {} + +/** @return array|false */ +function exif_read_data($filename, ?string $sections_needed = null, bool $sub_arrays = false, bool $read_thumbnail = false) {} + +/** @return string|false */ +function exif_thumbnail($filename, &$width = null, &$height = null, &$imagetype = null) {} + +/** @return int|false */ +function exif_imagetype(string $filename) {} |