com php-src: Removed read_exif_data() alias: UPGR ADING ext/exif/exif.c ext/exif/tests/exif_read_exif _data_basic-mb.phpt
ext/exif/tests/exif_read_exif _data_basic.phpt
| From: | Nikita Popov | Date: | Wed, 30 Jan 2019 12:13:47 +0000 |
| Subject: | com php-src: Removed read_exif_data() alias: UPGR ADING ext/exif/exif.c ext/exif/tests/exif_read_exif _data_basic-mb.phpt ext/exif/tests/exif_read_exif _data_basic.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104401@lists.php.net to get a copy of this message | ||
Commit: c88e2cce815a6d2d3fa0e7e8f46fe0fc8de6abe3
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 30 Jan 2019 12:58:26 +0100
Parents: 5a2787a02d56003e2e9731e2fad5b468180ec19a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c88e2cce815a6d2d3fa0e7e8f46fe0fc8de6abe3
Log:
Removed read_exif_data() alias
Changed paths:
M UPGRADING
M ext/exif/exif.c
D ext/exif/tests/exif_read_exif_data_basic-mb.phpt
D ext/exif/tests/exif_read_exif_data_basic.phpt
Diff:
diff --git a/UPGRADING b/UPGRADING
index 85da44d..eee50fe 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -38,6 +38,9 @@ PHP 8.0 UPGRADE NOTES
. mktime() and gmmktime() now require at least one argument. time() can be
used to get the current timestamp.
+- Exif:
+ . Removed read_exif_data(). exif_read_data() should be used instead.
+
- Filter:
. The FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED flags for the
FILTER_VALIDATE_URL filter have been removed. The scheme and host are (and
diff --git a/ext/exif/exif..c b/ext/exif/exif.c
index 8d221cc..83b8c3f 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -97,7 +97,6 @@ ZEND_END_ARG_INFO()
*/
static const zend_function_entry exif_functions[] = {
PHP_FE(exif_read_data, arginfo_exif_read_data)
- PHP_DEP_FALIAS(read_exif_data, exif_read_data, arginfo_exif_read_data)
PHP_FE(exif_tagname, arginfo_exif_tagname)
PHP_FE(exif_thumbnail, arginfo_exif_thumbnail)
PHP_FE(exif_imagetype, arginfo_exif_imagetype)
diff --git a/ext/exif/tests/exif_read_exif_data_basic-mb.phpt
b/ext/exif/tests/exif_read_exif_data_basic-mb.phpt
deleted file mode 100644
index b70be24..0000000
--- a/ext/exif/tests/exif_read_exif_data_basic-mb.phpt
+++ /dev/null
@@ -1,64 +0,0 @@
---TEST--
-Check for read_exif_data default behaviour
---SKIPIF--
-<?php if (!extension_loaded('exif')) print 'skip exif extension not
available';?>
---INI--
-output_handler=
-zlib.output_compression=0
---FILE--
-<?php
-
-/* Prototype : array read_exif_data ( string $filename [, string $sections [, bool $arrays [,
bool $thumbnail ]]] )
- * Description: Alias of exif_read_data()
- * Source code: ext/exif/exif.c
-*/
-echo "*** Testing read_exif_data() : basic functionality ***\n";
-
-print_r(read_exif_data(dirname(__FILE__).'/test2私はガラスを食べられます.jpg'));
-?>
-===Done===
---EXPECTF--
-*** Testing read_exif_data() : basic functionality ***
-
-Deprecated: Function read_exif_data() is deprecated in %sexif_read_exif_data_basic-mb.php on line 9
-Array
-(
- [FileName] => test2私はガラスを食べられます.jpg
- [FileDateTime] => %d
- [FileSize] => 1240
- [FileType] => 2
- [MimeType] => image/jpeg
- [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, COMMENT
- [COMPUTED] => Array
- (
- [html] => width="1" height="1"
- [Height] => 1
- [Width] => 1
- [IsColor] => 1
- [ByteOrderMotorola] => 1
- [UserComment] => Exif test image.
- [UserCommentEncoding] => ASCII
- [Copyright] => Photo (c) M.Boerger, Edited by M.Boerger.
- [Copyright.Photographer] => Photo (c) M.Boerger
- [Copyright.Editor] => Edited by M.Boerger.
- [Thumbnail.FileType] => 2
- [Thumbnail.MimeType] => image/jpeg
- )
-
- [Copyright] => Photo (c) M.Boerger
- [UserComment] => ASCII
- [THUMBNAIL] => Array
- (
- [JPEGInterchangeFormat] => 134
- [JPEGInterchangeFormatLength] => 523
- )
-
- [COMMENT] => Array
- (
- [0] => Comment #1.
- [1] => Comment #2.
- [2] => Comment #3end
- )
-
-)
-===Done===
diff --git a/ext/exif/tests/exif_read_exif_data_basic.phpt
b/ext/exif/tests/exif_read_exif_data_basic.phpt
deleted file mode 100644
index b279990..0000000
--- a/ext/exif/tests/exif_read_exif_data_basic.phpt
+++ /dev/null
@@ -1,64 +0,0 @@
---TEST--
-Check for read_exif_data default behaviour
---SKIPIF--
-<?php if (!extension_loaded('exif')) print 'skip exif extension not
available';?>
---INI--
-output_handler=
-zlib.output_compression=0
---FILE--
-<?php
-
-/* Prototype : array read_exif_data ( string $filename [, string $sections [, bool $arrays [,
bool $thumbnail ]]] )
- * Description: Alias of exif_read_data()
- * Source code: ext/exif/exif.c
-*/
-echo "*** Testing read_exif_data() : basic functionality ***\n";
-
-print_r(read_exif_data(dirname(__FILE__).'/test2.jpg'));
-?>
-===Done===
---EXPECTF--
-*** Testing read_exif_data() : basic functionality ***
-
-Deprecated: Function read_exif_data() is deprecated in %sexif_read_exif_data_basic.php on line 9
-Array
-(
- [FileName] => test2.jpg
- [FileDateTime] => %d
- [FileSize] => 1240
- [FileType] => 2
- [MimeType] => image/jpeg
- [SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, COMMENT
- [COMPUTED] => Array
- (
- [html] => width="1" height="1"
- [Height] => 1
- [Width] => 1
- [IsColor] => 1
- [ByteOrderMotorola] => 1
- [UserComment] => Exif test image.
- [UserCommentEncoding] => ASCII
- [Copyright] => Photo (c) M.Boerger, Edited by M.Boerger.
- [Copyright.Photographer] => Photo (c) M.Boerger
- [Copyright.Editor] => Edited by M.Boerger.
- [Thumbnail.FileType] => 2
- [Thumbnail.MimeType] => image/jpeg
- )
-
- [Copyright] => Photo (c) M.Boerger
- [UserComment] => ASCII
- [THUMBNAIL] => Array
- (
- [JPEGInterchangeFormat] => 134
- [JPEGInterchangeFormatLength] => 523
- )
-
- [COMMENT] => Array
- (
- [0] => Comment #1.
- [1] => Comment #2.
- [2] => Comment #3end
- )
-
-)
-===Done===