com php-src: Mark functions as PHP_DEP_FE instead of manually emitting the notice: ext/gd/gd.c ext/gd/ tests/jpeg2wbmp_error1.phpt
ext/gd/tests/jpeg2wbmp _error2-mb.phpt ext/gd/tests/jpeg2wbmp_error2.p hpt ext/gd/tests/jpeg2wbmp_error3.phpt ext/gd/tests /png2wbmp_error1-mb.phpt
ext/gd/tests/png2wbmp_er ror1.phpt ext/gd/tests/png2wbmp_error2.phpt ext /gd/tests/png2wbmp_error3.phpt
| From: | Christoph Michael Becker | Date: | Sat, 15 Oct 2016 21:41:33 +0000 |
| Subject: | com php-src: Mark functions as PHP_DEP_FE instead of manually emitting the notice: ext/gd/gd.c ext/gd/ tests/jpeg2wbmp_error1.phpt ext/gd/tests/jpeg2wbmp _error2-mb.phpt ext/gd/tests/jpeg2wbmp_error2.p hpt ext/gd/tests/jpeg2wbmp_error3.phpt ext/gd/tests /png2wbmp_error1-mb.phpt ext/gd/tests/png2wbmp_er ror1.phpt ext/gd/tests/png2wbmp_error2.phpt ext /gd/tests/png2wbmp_error3.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95759@lists.php.net to get a copy of this message | ||
Commit: 1aaa560d85a825a379cf6443e1c0e711b0e53b7e
Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 15 Oct 2016 23:41:33 +0200
Parents: 1490446ce0e7b428f2ed05f00966baca1238c486
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1aaa560d85a825a379cf6443e1c0e711b0e53b7e
Log:
Mark functions as PHP_DEP_FE instead of manually emitting the notice
Changed paths:
M ext/gd/gd.c
M ext/gd/tests/jpeg2wbmp_error1.phpt
M ext/gd/tests/jpeg2wbmp_error2-mb.phpt
M ext/gd/tests/jpeg2wbmp_error2.phpt
M ext/gd/tests/jpeg2wbmp_error3.phpt
M ext/gd/tests/png2wbmp_error1-mb.phpt
M ext/gd/tests/png2wbmp_error1.phpt
M ext/gd/tests/png2wbmp_error2.phpt
M ext/gd/tests/png2wbmp_error3.phpt
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 6aff593..8b1ba56 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -958,10 +958,10 @@ const zend_function_entry gd_functions[] = { PHP_FE(imagetypes, arginfo_imagetypes) #if defined(HAVE_GD_JPG) - PHP_FE(jpeg2wbmp, arginfo_jpeg2wbmp) + PHP_DEP_FE(jpeg2wbmp, arginfo_jpeg2wbmp) #endif #if defined(HAVE_GD_PNG) - PHP_FE(png2wbmp, arginfo_png2wbmp) + PHP_DEP_FE(png2wbmp, arginfo_png2wbmp) #endif PHP_FE(image2wbmp, arginfo_image2wbmp) PHP_FE(imagelayereffect, arginfo_imagelayereffect) @@ -4085,8 +4085,6 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) zend_long ignore_warning; #endif - php_error_docref(NULL, E_DEPRECATED, "This function is deprecated"); - if (zend_parse_parameters(ZEND_NUM_ARGS(), "pplll", &f_org, &f_org_len, &f_dest, &f_dest_len, &height, &width, &threshold) == FAILURE) { return; } diff --git a/ext/gd/tests/jpeg2wbmp_error1.phpt b/ext/gd/tests/jpeg2wbmp_error1.phpt index 9cb1d14..2368e75 100644 --- a/ext/gd/tests/jpeg2wbmp_error1.phpt +++ b/ext/gd/tests/jpeg2wbmp_error1.phpt @@ -32,11 +32,11 @@ jpeg2wbmp($file, $file2, 20, 120, 9); jpeg2wbmp($file, $file2, 20, 120, -1); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Invalid threshold value '9' in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Invalid threshold value '-1' in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/jpeg2wbmp_error2-mb.phpt b/ext/gd/tests/jpeg2wbmp_error2-mb.phpt index db17bbb..b414cb3 100644 --- a/ext/gd/tests/jpeg2wbmp_error2-mb.phpt +++ b/ext/gd/tests/jpeg2wbmp_error2-mb.phpt @@ -20,15 +20,15 @@ jpeg2wbmp(null, $file, 20, 120, 8); jpeg2wbmp(false, $file, 20, 120, 8); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/jpeg2wbmp_error2.phpt b/ext/gd/tests/jpeg2wbmp_error2.phpt index ffac9cd..22e2301 100644 --- a/ext/gd/tests/jpeg2wbmp_error2.phpt +++ b/ext/gd/tests/jpeg2wbmp_error2.phpt @@ -20,15 +20,15 @@ jpeg2wbmp(null, $file, 20, 120, 8); jpeg2wbmp(false, $file, 20, 120, 8); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/jpeg2wbmp_error3.phpt b/ext/gd/tests/jpeg2wbmp_error3.phpt index 8e36b04..e15c947 100644 --- a/ext/gd/tests/jpeg2wbmp_error3.phpt +++ b/ext/gd/tests/jpeg2wbmp_error3.phpt @@ -32,15 +32,15 @@ jpeg2wbmp($file, null, 20, 120, 8); jpeg2wbmp($file, false, 20, 120, 8); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error1-mb.phpt b/ext/gd/tests/png2wbmp_error1-mb.phpt index 00d526c..a16e1a6 100644 --- a/ext/gd/tests/png2wbmp_error1-mb.phpt +++ b/ext/gd/tests/png2wbmp_error1-mb.phpt @@ -32,11 +32,11 @@ png2wbmp($file, $file2, 20, 120, 9); png2wbmp($file, $file2, 20, 120, -1); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '9' in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '-1' in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error1.phpt b/ext/gd/tests/png2wbmp_error1.phpt index 0a4ade7..e3496a4 100644 --- a/ext/gd/tests/png2wbmp_error1.phpt +++ b/ext/gd/tests/png2wbmp_error1.phpt @@ -32,11 +32,11 @@ png2wbmp($file, $file2, 20, 120, 9); png2wbmp($file, $file2, 20, 120, -1); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '9' in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '-1' in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error2.phpt b/ext/gd/tests/png2wbmp_error2.phpt index 19ab018..71912b6 100644 --- a/ext/gd/tests/png2wbmp_error2.phpt +++ b/ext/gd/tests/png2wbmp_error2.phpt @@ -20,15 +20,15 @@ png2wbmp(null, $file, 20, 120, 8); png2wbmp(false, $file, 20, 120, 8); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for reading in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error3.phpt b/ext/gd/tests/png2wbmp_error3.phpt index 063e023..53ffb54 100644 --- a/ext/gd/tests/png2wbmp_error3.phpt +++ b/ext/gd/tests/png2wbmp_error3.phpt @@ -32,15 +32,15 @@ png2wbmp($file, null, 20, 120, 8); png2wbmp($file, false, 20, 120, 8); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for writing in %s on line %d --CLEAN--
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 6aff593..8b1ba56 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -958,10 +958,10 @@ const zend_function_entry gd_functions[] = { PHP_FE(imagetypes, arginfo_imagetypes) #if defined(HAVE_GD_JPG) - PHP_FE(jpeg2wbmp, arginfo_jpeg2wbmp) + PHP_DEP_FE(jpeg2wbmp, arginfo_jpeg2wbmp) #endif #if defined(HAVE_GD_PNG) - PHP_FE(png2wbmp, arginfo_png2wbmp) + PHP_DEP_FE(png2wbmp, arginfo_png2wbmp) #endif PHP_FE(image2wbmp, arginfo_image2wbmp) PHP_FE(imagelayereffect, arginfo_imagelayereffect) @@ -4085,8 +4085,6 @@ static void _php_image_convert(INTERNAL_FUNCTION_PARAMETERS, int image_type ) zend_long ignore_warning; #endif - php_error_docref(NULL, E_DEPRECATED, "This function is deprecated"); - if (zend_parse_parameters(ZEND_NUM_ARGS(), "pplll", &f_org, &f_org_len, &f_dest, &f_dest_len, &height, &width, &threshold) == FAILURE) { return; } diff --git a/ext/gd/tests/jpeg2wbmp_error1.phpt b/ext/gd/tests/jpeg2wbmp_error1.phpt index 9cb1d14..2368e75 100644 --- a/ext/gd/tests/jpeg2wbmp_error1.phpt +++ b/ext/gd/tests/jpeg2wbmp_error1.phpt @@ -32,11 +32,11 @@ jpeg2wbmp($file, $file2, 20, 120, 9); jpeg2wbmp($file, $file2, 20, 120, -1); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Invalid threshold value '9' in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Invalid threshold value '-1' in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/jpeg2wbmp_error2-mb.phpt b/ext/gd/tests/jpeg2wbmp_error2-mb.phpt index db17bbb..b414cb3 100644 --- a/ext/gd/tests/jpeg2wbmp_error2-mb.phpt +++ b/ext/gd/tests/jpeg2wbmp_error2-mb.phpt @@ -20,15 +20,15 @@ jpeg2wbmp(null, $file, 20, 120, 8); jpeg2wbmp(false, $file, 20, 120, 8); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/jpeg2wbmp_error2.phpt b/ext/gd/tests/jpeg2wbmp_error2.phpt index ffac9cd..22e2301 100644 --- a/ext/gd/tests/jpeg2wbmp_error2.phpt +++ b/ext/gd/tests/jpeg2wbmp_error2.phpt @@ -20,15 +20,15 @@ jpeg2wbmp(null, $file, 20, 120, 8); jpeg2wbmp(false, $file, 20, 120, 8); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for reading in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/jpeg2wbmp_error3.phpt b/ext/gd/tests/jpeg2wbmp_error3.phpt index 8e36b04..e15c947 100644 --- a/ext/gd/tests/jpeg2wbmp_error3.phpt +++ b/ext/gd/tests/jpeg2wbmp_error3.phpt @@ -32,15 +32,15 @@ jpeg2wbmp($file, null, 20, 120, 8); jpeg2wbmp($file, false, 20, 120, 8); ?> --EXPECTF-- -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: jpeg2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function jpeg2wbmp() is deprecated in %s on line %d Warning: jpeg2wbmp(): Unable to open '' for writing in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error1-mb.phpt b/ext/gd/tests/png2wbmp_error1-mb.phpt index 00d526c..a16e1a6 100644 --- a/ext/gd/tests/png2wbmp_error1-mb.phpt +++ b/ext/gd/tests/png2wbmp_error1-mb.phpt @@ -32,11 +32,11 @@ png2wbmp($file, $file2, 20, 120, 9); png2wbmp($file, $file2, 20, 120, -1); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '9' in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '-1' in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error1.phpt b/ext/gd/tests/png2wbmp_error1.phpt index 0a4ade7..e3496a4 100644 --- a/ext/gd/tests/png2wbmp_error1.phpt +++ b/ext/gd/tests/png2wbmp_error1.phpt @@ -32,11 +32,11 @@ png2wbmp($file, $file2, 20, 120, 9); png2wbmp($file, $file2, 20, 120, -1); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '9' in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Invalid threshold value '-1' in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error2.phpt b/ext/gd/tests/png2wbmp_error2.phpt index 19ab018..71912b6 100644 --- a/ext/gd/tests/png2wbmp_error2.phpt +++ b/ext/gd/tests/png2wbmp_error2.phpt @@ -20,15 +20,15 @@ png2wbmp(null, $file, 20, 120, 8); png2wbmp(false, $file, 20, 120, 8); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for reading in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for reading in %s on line %d --CLEAN-- diff --git a/ext/gd/tests/png2wbmp_error3.phpt b/ext/gd/tests/png2wbmp_error3.phpt index 063e023..53ffb54 100644 --- a/ext/gd/tests/png2wbmp_error3.phpt +++ b/ext/gd/tests/png2wbmp_error3.phpt @@ -32,15 +32,15 @@ png2wbmp($file, null, 20, 120, 8); png2wbmp($file, false, 20, 120, 8); ?> --EXPECTF-- -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for writing in %s on line %d -Deprecated: png2wbmp(): This function is deprecated in %s on line %d +Deprecated: Function png2wbmp() is deprecated in %s on line %d Warning: png2wbmp(): Unable to open '' for writing in %s on line %d --CLEAN--