From 7c541356f3dd7aa33a8679ad2a1d3e3ef043fd7a Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Tue, 23 Nov 2010 21:49:18 +0000 Subject: [PATCH] - Fixed compile warnings --- Zend/zend_compile.c | 4 ++-- ext/standard/rand.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 3543df829e..ca9dfe1d42 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3680,10 +3680,10 @@ static int zend_traits_copy_functions(zend_function *fn TSRMLS_DC, int num_args, /* apply aliases which are qualified with a class name, there should not be any ambiguity */ if (aliases) { while (aliases[i]) { - if (!aliases[i]->trait_method->ce || fn->common.scope == aliases[i]->trait_method->ce && + if (!aliases[i]->trait_method->ce || (fn->common.scope == aliases[i]->trait_method->ce && (zend_binary_strcasecmp(aliases[i]->trait_method->method_name, aliases[i]->trait_method->mname_len, - fn->common.function_name, fnname_len) == 0)) { + fn->common.function_name, fnname_len) == 0))) { if (aliases[i]->alias) { fn_copy = *fn; zend_traits_duplicate_function(&fn_copy, estrndup(aliases[i]->alias, aliases[i]->alias_len) TSRMLS_CC); diff --git a/ext/standard/rand.c b/ext/standard/rand.c index eb26cc5c50..8cd130d969 100644 --- a/ext/standard/rand.c +++ b/ext/standard/rand.c @@ -323,7 +323,7 @@ PHP_FUNCTION(mt_rand) } if (max < min) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "max(%d) is smaller than min(%d)", max, min); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "max(%ld) is smaller than min(%ld)", max, min); RETURN_FALSE; } -- 2.40.0