Changeset 1214
- Timestamp:
- 01/11/08 14:34:27 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/stubClassLoader.php
r1209 r1214 180 180 { 181 181 $classNames = func_get_args(); 182 if (count($classNames) == 0) {182 if (count($classNames) === 0) { 183 183 // its ok to call this without any arguments, this won't cause any harm 184 184 return; … … 191 191 foreach ($classNames as $fqClassName) { 192 192 $nqClassName = self::getNonQualifiedClassName($fqClassName); 193 if (isset(self::$classNames[$nqClassName]) == true) { 193 // backward compatibility for dot as package separator 194 $fqClassName = str_replace('.', '::', $fqClassName); 195 if (isset(self::$classNames[$nqClassName]) === true) { 194 196 continue; 195 197 } … … 207 209 } 208 210 if (null === $uri) { 209 $uri = self::$sourcePath . str_replace('::', DIRECTORY_SEPARATOR, str_replace('.', DIRECTORY_SEPARATOR, $fqClassName)) . '.php';210 } 211 212 if ((include $uri)== false) {211 $uri = self::$sourcePath . str_replace('::', DIRECTORY_SEPARATOR, $fqClassName) . '.php'; 212 } 213 214 if ((include_once $uri) === false) { 213 215 throw new stubClassNotFoundException($fqClassName); 214 216 } 215 217 216 if (method_exists($nqClassName, '__static') == true) {218 if (method_exists($nqClassName, '__static') === true) { 217 219 call_user_func(array($nqClassName, '__static')); 218 220 }
