summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorNewEraCracker2016-04-08 21:51:53 +0100
committerBen Fuhrmannek2016-08-25 12:45:45 +0200
commiteeb32305ba52615d5ebd16f174679b5c919d67c3 (patch)
treea08a469d248961aefbd2846ce80ca2f483c934a2 /execute.c
parent64f8d58106dbda0d0cc1d3c0d0d4dd0194ccd7e3 (diff)
Avoid having parameter warnings twice when they're incorrect
Diffstat (limited to '')
-rw-r--r--execute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/execute.c b/execute.c
index d8b0be4..94f7b4b 100644
--- a/execute.c
+++ b/execute.c
@@ -674,7 +674,7 @@ int ih_preg_replace(IH_HANDLER_PARAMS)
674 **limit, **zcount; 674 **limit, **zcount;
675 675
676 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|ZZ", &regex, &replace, &subject, &limit, &zcount) == FAILURE) { 676 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|ZZ", &regex, &replace, &subject, &limit, &zcount) == FAILURE) {
677 return(0); 677 return (1);
678 } 678 }
679 679
680 if (Z_TYPE_PP(regex) == IS_ARRAY) { 680 if (Z_TYPE_PP(regex) == IS_ARRAY) {
@@ -1529,8 +1529,9 @@ static int ih_rand(IH_HANDLER_PARAMS)
1529static int ih_getrandmax(IH_HANDLER_PARAMS) 1529static int ih_getrandmax(IH_HANDLER_PARAMS)
1530{ 1530{
1531 if (zend_parse_parameters_none() == FAILURE) { 1531 if (zend_parse_parameters_none() == FAILURE) {
1532 return(0); 1532 return (1);
1533 } 1533 }
1534
1534 RETVAL_LONG(PHP_MT_RAND_MAX); 1535 RETVAL_LONG(PHP_MT_RAND_MAX);
1535 return (1); 1536 return (1);
1536} 1537}