summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorStefan Esser2014-02-12 19:54:50 +0100
committerStefan Esser2014-02-12 19:54:50 +0100
commit80abd49293bfb34f71f96214d615b1bfbc148928 (patch)
tree96bb8713580271b597bbbad9abd3c864ba1d3343 /execute.c
parent0d720940a4eb2f26a49de1bffcea6ecaf2938808 (diff)
Silence all compiler warnings
Diffstat (limited to '')
-rw-r--r--execute.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/execute.c b/execute.c
index f6381e3..f778a01 100644
--- a/execute.c
+++ b/execute.c
@@ -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, &regex, &replace, &subject, &limit) == FAILURE) { 688 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|ZZ", &regex, &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 */