diff options
Diffstat (limited to 'execute.c')
| -rw-r--r-- | execute.c | 14 |
1 files changed, 7 insertions, 7 deletions
| @@ -316,7 +316,7 @@ static int suhosin_detect_codetype(zend_op_array *op_array TSRMLS_DC) | |||
| 316 | char *s; | 316 | char *s; |
| 317 | int r; | 317 | int r; |
| 318 | 318 | ||
| 319 | s = op_array->filename; | 319 | s = (char *)op_array->filename; |
| 320 | 320 | ||
| 321 | /* eval, assert, create_function, preg_replace */ | 321 | /* eval, assert, create_function, preg_replace */ |
| 322 | if (op_array->type == ZEND_EVAL_CODE) { | 322 | if (op_array->type == ZEND_EVAL_CODE) { |
| @@ -498,7 +498,7 @@ static void suhosin_execute_ex(zend_op_array *op_array, int zo, long dummy TSRML | |||
| 498 | suhosin_bailout(TSRMLS_C); | 498 | suhosin_bailout(TSRMLS_C); |
| 499 | } | 499 | } |
| 500 | 500 | ||
| 501 | fn = op_array->filename; | 501 | fn = (char *)op_array->filename; |
| 502 | len = strlen(fn); | 502 | len = strlen(fn); |
| 503 | 503 | ||
| 504 | orig_code_type = SUHOSIN_G(in_code_type); | 504 | orig_code_type = SUHOSIN_G(in_code_type); |
| @@ -683,11 +683,11 @@ int ih_preg_replace(IH_HANDLER_PARAMS) | |||
| 683 | zval **regex, | 683 | zval **regex, |
| 684 | **replace, | 684 | **replace, |
| 685 | **subject, | 685 | **subject, |
| 686 | **limit; | 686 | **limit, **zcount; |
| 687 | 687 | ||
| 688 | if (ZEND_NUM_ARGS() < 3 || zend_get_parameters_ex(3, ®ex, &replace, &subject, &limit) == FAILURE) { | 688 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|ZZ", ®ex, &replace, &subject, &limit, &zcount) == FAILURE) { |
| 689 | return (0); | 689 | return(0); |
| 690 | } | 690 | } |
| 691 | 691 | ||
| 692 | if (Z_TYPE_PP(regex) == IS_ARRAY) { | 692 | if (Z_TYPE_PP(regex) == IS_ARRAY) { |
| 693 | zval **regex_entry; | 693 | zval **regex_entry; |
| @@ -1625,7 +1625,7 @@ static void suhosin_execute_internal(zend_execute_data *execute_data_ptr, int re | |||
| 1625 | #ifdef ZEND_ENGINE_2 | 1625 | #ifdef ZEND_ENGINE_2 |
| 1626 | ce = ((zend_internal_function *) execute_data_ptr->function_state.function)->scope; | 1626 | ce = ((zend_internal_function *) execute_data_ptr->function_state.function)->scope; |
| 1627 | #endif | 1627 | #endif |
| 1628 | lcname = ((zend_internal_function *) execute_data_ptr->function_state.function)->function_name; | 1628 | lcname = (char *)((zend_internal_function *) execute_data_ptr->function_state.function)->function_name; |
| 1629 | function_name_strlen = strlen(lcname); | 1629 | function_name_strlen = strlen(lcname); |
| 1630 | 1630 | ||
| 1631 | /* handle methodcalls correctly */ | 1631 | /* handle methodcalls correctly */ |
