Skip to content

Commit dd4a78b

Browse files
committed
Don't separate output arguments
1 parent 490960d commit dd4a78b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ext/pcre/php_pcre.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ static void php_do_pcre_match(INTERNAL_FUNCTION_PARAMETERS, int global) /* {{{ *
677677
Z_PARAM_STR(regex)
678678
Z_PARAM_STR(subject)
679679
Z_PARAM_OPTIONAL
680-
Z_PARAM_ZVAL_EX(subpats, 0, 1)
680+
Z_PARAM_ZVAL_DEREF(subpats)
681681
Z_PARAM_LONG(flags)
682682
Z_PARAM_LONG(start_offset)
683683
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
@@ -1613,7 +1613,7 @@ static PHP_FUNCTION(preg_replace)
16131613
Z_PARAM_ZVAL(subject)
16141614
Z_PARAM_OPTIONAL
16151615
Z_PARAM_LONG(limit)
1616-
Z_PARAM_ZVAL_EX(zcount, 0, 1)
1616+
Z_PARAM_ZVAL_DEREF(zcount)
16171617
ZEND_PARSE_PARAMETERS_END();
16181618

16191619
if (Z_TYPE_P(replace) == IS_ARRAY && Z_TYPE_P(regex) != IS_ARRAY) {
@@ -1645,7 +1645,7 @@ static PHP_FUNCTION(preg_replace_callback)
16451645
Z_PARAM_ZVAL(subject)
16461646
Z_PARAM_OPTIONAL
16471647
Z_PARAM_LONG(limit)
1648-
Z_PARAM_ZVAL_EX(zcount, 0, 1)
1648+
Z_PARAM_ZVAL_DEREF(zcount)
16491649
ZEND_PARSE_PARAMETERS_END();
16501650

16511651
if (!zend_is_callable(replace, 0, &callback_name)) {
@@ -1680,7 +1680,7 @@ static PHP_FUNCTION(preg_replace_callback_array)
16801680
Z_PARAM_ZVAL(subject)
16811681
Z_PARAM_OPTIONAL
16821682
Z_PARAM_LONG(limit)
1683-
Z_PARAM_ZVAL_EX(zcount, 0, 1)
1683+
Z_PARAM_ZVAL_DEREF(zcount)
16841684
ZEND_PARSE_PARAMETERS_END();
16851685

16861686
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pattern), str_idx, replace) {
@@ -1741,7 +1741,7 @@ static PHP_FUNCTION(preg_filter)
17411741
Z_PARAM_ZVAL(subject)
17421742
Z_PARAM_OPTIONAL
17431743
Z_PARAM_LONG(limit)
1744-
Z_PARAM_ZVAL_EX(zcount, 0, 1)
1744+
Z_PARAM_ZVAL_DEREF(zcount)
17451745
ZEND_PARSE_PARAMETERS_END();
17461746

17471747
if (Z_TYPE_P(replace) == IS_ARRAY && Z_TYPE_P(regex) != IS_ARRAY) {

ext/standard/streamsfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ PHP_FUNCTION(stream_socket_accept)
267267
Z_PARAM_RESOURCE(zstream)
268268
Z_PARAM_OPTIONAL
269269
Z_PARAM_DOUBLE(timeout)
270-
Z_PARAM_ZVAL_EX(zpeername, 0, 1)
270+
Z_PARAM_ZVAL_DEREF(zpeername)
271271
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
272272

273273
php_stream_from_zval(stream, zstream);
@@ -282,7 +282,7 @@ PHP_FUNCTION(stream_socket_accept)
282282
tv.tv_usec = conv % 1000000;
283283
#endif
284284
if (zpeername) {
285-
zval_dtor(zpeername);
285+
zval_ptr_dtor(zpeername);
286286
ZVAL_NULL(zpeername);
287287
}
288288

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4103,7 +4103,7 @@ static void php_str_replace_common(INTERNAL_FUNCTION_PARAMETERS, int case_sensit
41034103
Z_PARAM_ZVAL(replace)
41044104
Z_PARAM_ZVAL(subject)
41054105
Z_PARAM_OPTIONAL
4106-
Z_PARAM_ZVAL_EX(zcount, 0, 1)
4106+
Z_PARAM_ZVAL_DEREF(zcount)
41074107
ZEND_PARSE_PARAMETERS_END();
41084108

41094109
/* Make sure we're dealing with strings and do the replacement. */

0 commit comments

Comments
 (0)