Update accepted/PSR-0.md #53

Merged
merged 1 commit into from Nov 27, 2012
+1 −1
Split
View
@@ -50,7 +50,7 @@ function autoload($className)
$className = ltrim($className, '\\');
$fileName = '';
$namespace = '';
- if ($lastNsPos = strripos($className, '\\')) {
+ if ($lastNsPos = strrpos($className, '\\')) {
$namespace = substr($className, 0, $lastNsPos);
$className = substr($className, $lastNsPos + 1);
$fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;