diff options
| author | NewEraCracker | 2016-04-08 21:51:53 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-08-25 12:45:45 +0200 |
| commit | eeb32305ba52615d5ebd16f174679b5c919d67c3 (patch) | |
| tree | a08a469d248961aefbd2846ce80ca2f483c934a2 /execute.c | |
| parent | 64f8d58106dbda0d0cc1d3c0d0d4dd0194ccd7e3 (diff) | |
Avoid having parameter warnings twice when they're incorrect
Diffstat (limited to '')
| -rw-r--r-- | execute.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -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", ®ex, &replace, &subject, &limit, &zcount) == FAILURE) { | 676 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|ZZ", ®ex, &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) | |||
| 1529 | static int ih_getrandmax(IH_HANDLER_PARAMS) | 1529 | static 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 | } |
