1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Deprecated the read_exif_data() alias

This commit is contained in:
Kalle Sommer Nielsen
2017-07-08 15:02:05 +02:00
parent 5c6e0b189e
commit ba28d75c2c
4 changed files with 7 additions and 1 deletions

1
NEWS
View File

@@ -12,6 +12,7 @@ PHP NEWS
. Fixed bug #74878 (Data race in ZTS builds). (Nikita)
- EXIF:
. Deprecated the read_exif_data() alias. (Kalle)
. Fixed bug #74428 (exif_read_data(): "Illegal IFD size" warning occurs with
correct exif format). (bradpiccho at gmail dot com, Kalle)
. Fixed bug #72819 (EXIF thumbnails not read anymore). (Kalle)

View File

@@ -164,6 +164,9 @@ PHP 8.0.
. The create_function() function has been deprecated, use anonymous functions
instead.
. The each() function has been deprecated, use a foreach loop instead.
- EXIF:
. The read_exif_data() alias have been deprecated, use exif_read_data() instead.
- GD:
. png2wbmp() and jpeg2wbmp() have been deprecated.

View File

@@ -120,7 +120,7 @@ ZEND_END_ARG_INFO()
*/
const zend_function_entry exif_functions[] = {
PHP_FE(exif_read_data, arginfo_exif_read_data)
PHP_FALIAS(read_exif_data, 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)

View File

@@ -19,6 +19,8 @@ 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