Permalink
Browse files

Update accepted/PSR-0.md

`stripos` is extravagant and wasteful.
  • Loading branch information...
1 parent 74ef01f commit 5f80e827779acfd9c6150edeadc87424b74166c2 @donatj donatj committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 accepted/PSR-0.md
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;

0 comments on commit 5f80e82

Please sign in to comment.