diff options
| -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 | } |
