diff --git a/processor/processor.m4 b/processor/processor.m4 index 77a5179..e49c035 100644 --- a/processor/processor.m4 +++ b/processor/processor.m4 @@ -464,7 +464,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{ IFRESTORE(` #ifdef ZEND_ENGINE_2 if (dst->scope) { - dst->scope = xc_get_class(processor, (int) dst->scope); + dst->scope = xc_get_class(processor, (zend_ulong) dst->scope); xc_fix_method(processor, dst); } #endif @@ -484,7 +484,7 @@ DEF_STRUCT_P_FUNC(`zend_op_array', , `dnl {{{ #ifdef ZEND_ENGINE_2 IFRESTORE(` if (dst->scope) { - dst->scope = xc_get_class(processor, (int) dst->scope); + dst->scope = xc_get_class(processor, (zend_ulong) dst->scope); xc_fix_method(processor, dst); } DONE(scope) diff --git a/xcache.c b/xcache.c index 71f4939..e0b00b1 100644 --- a/xcache.c +++ b/xcache.c @@ -1141,7 +1141,7 @@ static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */ unsigned char digest[16]; PHP_MD5Init(&context); - PHP_MD5Update(&context, Z_STRVAL_PP(pass), Z_STRLEN_PP(pass)); + PHP_MD5Update(&context, (unsigned char *) Z_STRVAL_PP(pass), Z_STRLEN_PP(pass)); PHP_MD5Final(digest, &context); md5str[0] = '\0';