diff -u b/includes/common.inc b/includes/common.inc --- b/includes/common.inc +++ b/includes/common.inc @@ -1995,7 +1995,7 @@ $key = explode('|', $key); if ($interval >= $value) { $output .= ($output ? ' ' : '') . format_plural(floor($interval / $value), $key[0], $key[1], array(), array('langcode' => $langcode)); - $interval %= $value; + $interval = (int) $interval % $value; $granularity--; } diff -u b/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module --- b/modules/simpletest/tests/system_test.module +++ b/modules/simpletest/tests/system_test.module @@ -567,5 +567,5 @@ unset($implementations['system_test']); $count = count($implementations); - $implementations = array_merge(array_slice($implementations, 0, (int) $count / 2, TRUE), array('system_test' => $group), array_slice($implementations, (int) $count / 2, NULL, TRUE)); + $implementations = array_merge(array_slice($implementations, 0, (int) ($count / 2), TRUE), array('system_test' => $group), array_slice($implementations, (int) ($count / 2), NULL, TRUE)); } } only in patch2: unchanged: --- a/modules/color/color.module +++ b/modules/color/color.module @@ -752,7 +752,7 @@ function _color_unpack($hex, $normalize = FALSE) { function _color_pack($rgb, $normalize = FALSE) { $out = 0; foreach ($rgb as $k => $v) { - $out |= (($v * ($normalize ? 255 : 1)) << (16 - $k * 8)); + $out = (int) $out | (($v * ($normalize ? 255 : 1)) << (16 - $k * 8)); } return '#' . str_pad(dechex($out), 6, 0, STR_PAD_LEFT); only in patch2: unchanged: --- a/modules/syslog/syslog.module +++ b/modules/syslog/syslog.module @@ -111,8 +111,8 @@ function syslog_watchdog(array $log_entry) { '!request_uri' => $log_entry['request_uri'], '!referer' => $log_entry['referer'], '!uid' => $log_entry['uid'], - '!link' => strip_tags($log_entry['link']), - '!message' => strip_tags(!isset($log_entry['variables']) ? $log_entry['message'] : strtr($log_entry['message'], $log_entry['variables'])), + '!link' => strip_tags((string) $log_entry['link']), + '!message' => strip_tags((string) (!isset($log_entry['variables']) ? $log_entry['message'] : strtr($log_entry['message'], $log_entry['variables']))), )); syslog($log_entry['severity'], $message);