Changing sizeof to count.
authorTim Düsterhus <timwolla@arcor.de>
Tue, 8 Nov 2011 16:05:20 +0000 (17:05 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Tue, 8 Nov 2011 16:05:20 +0000 (17:05 +0100)
This is a very important bugfix, my whole installation broke, because of this!

wcfsetup/install/files/lib/system/cache/builder/OptionCacheBuilder.class.php

index 5e8d82cb3254e7612d9fd330d7a71fa52c8b831b..9dbc15d285a19c828c1511de1b9272bf238a6caf 100644 (file)
@@ -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);