From: Tim Düsterhus Date: Tue, 8 Nov 2011 16:05:20 +0000 (+0100) Subject: Changing sizeof to count. X-Git-Tag: 2.0.0_Beta_1~1616^2^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c6df6a22a690778a3139500021c4a5cb7d5f0d50;p=GitHub%2FWoltLab%2FWCF.git Changing sizeof to count. This is a very important bugfix, my whole installation broke, because of this! --- diff --git a/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php b/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php index 5e8d82cb32..9dbc15d285 100644 --- a/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php +++ b/wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php @@ -97,7 +97,7 @@ class OptionCacheBuilder implements ICacheBuilder { preg_match_all('~((?:^|[A-Z])[a-z]+)~', $type, $matches); if (isset($matches[1])) { $className = 'wcf\data\\'; - for ($i = 0, $length = sizeof($matches[1]); $i < $length; $i++) { + for ($i = 0, $length = count($matches[1]); $i < $length; $i++) { $className .= $matches[1][$i] . '\\'; } $className .= ucfirst($type);