com php-src: Remove remaining zpp fallback code (master branch): ext/gd/gd.c ext/mbstring/mbstring.c
| From: | Andrea Faulds | Date: | Sun, 11 Sep 2016 21:50:24 +0000 |
| Subject: | com php-src: Remove remaining zpp fallback code (master branch): ext/gd/gd.c ext/mbstring/mbstring.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94430@lists.php.net to get a copy of this message | ||
Commit: 3cc90901010f016923e9ca6a4ae15ba08bc18169
Author: Andrea Faulds <ajf@ajf.me> Sun, 11 Sep 2016 22:50:24 +0100
Parents: 695176458f0b039cd601ea2c7ca006f59efbc56a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3cc90901010f016923e9ca6a4ae15ba08bc18169
Log:
Remove remaining zpp fallback code (master branch)
Follow-up to d690014bf35507ccb7a1150a27504d2f87848842
Changed paths:
M ext/gd/gd.c
M ext/mbstring/mbstring.c
Diff:
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 5b70614..6cfcce8 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -2805,17 +2805,11 @@ PHP_FUNCTION(imagecolorat)
zend_long x, y;
gdImagePtr im;
-#ifndef FAST_ZPP
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "rll", &IM, &x, &y) == FAILURE) {
- return;
- }
-#else
ZEND_PARSE_PARAMETERS_START(3, 3)
Z_PARAM_RESOURCE(IM)
Z_PARAM_LONG(x)
Z_PARAM_LONG(y)
ZEND_PARSE_PARAMETERS_END();
-#endif
if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) {
RETURN_FALSE;
@@ -3075,18 +3069,12 @@ PHP_FUNCTION(imagesetpixel)
zend_long x, y, col;
gdImagePtr im;
-#ifndef FAST_ZPP
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "rlll", &IM, &x, &y, &col) ==
FAILURE) {
- return;
- }
-#else
ZEND_PARSE_PARAMETERS_START(4, 4)
Z_PARAM_RESOURCE(IM)
Z_PARAM_LONG(x)
Z_PARAM_LONG(y)
Z_PARAM_LONG(col)
ZEND_PARSE_PARAMETERS_END();
-#endif
if ((im = (gdImagePtr)zend_fetch_resource(Z_RES_P(IM), "Image", le_gd)) == NULL) {
RETURN_FALSE;
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 31abc7b..2966863 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -5121,17 +5121,11 @@ PHP_FUNCTION(mb_ord)
size_t enc_len;
zend_long cp;
-#ifndef FAST_ZPP
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &str, &str_len, &enc,
&enc_len) == FAILURE) {
- return;
- }
-#else
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STRING(str, str_len)
Z_PARAM_OPTIONAL
Z_PARAM_STRING(enc, enc_len)
ZEND_PARSE_PARAMETERS_END();
-#endif
cp = php_mb_ord(str, str_len, enc);
@@ -5302,17 +5296,11 @@ PHP_FUNCTION(mb_chr)
char* ret;
size_t ret_len;
-#ifndef FAST_ZPP
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &cp, &enc,
&enc_len) == FAILURE) {
- return;
- }
-#else
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_LONG(cp)
Z_PARAM_OPTIONAL
Z_PARAM_STRING(enc, enc_len)
ZEND_PARSE_PARAMETERS_END();
-#endif
ret = php_mb_chr(cp, enc, &ret_len);
@@ -5343,17 +5331,11 @@ PHP_FUNCTION(mb_scrub)
size_t enc_len;
char *ret;
-#ifndef FAST_ZPP
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &str, &str_len, &enc,
&enc_len) == FAILURE) {
- return;
- }
-#else
ZEND_PARSE_PARAMETERS_START(1, 2)
Z_PARAM_STRING(str, str_len)
Z_PARAM_OPTIONAL
Z_PARAM_STRING(enc, enc_len)
-ZEND_PARSE_PARAMETERS_END();
-#endif
+ ZEND_PARSE_PARAMETERS_END();
if (enc == NULL) {
enc = (char *) MBSTRG(current_internal_encoding)->name;