Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Update accepted/ #53

merged 1 commit into from

3 participants

Jesse Donat Renan Gonçalves Paul Dragoonis
Jesse Donat

stripos is extravagant and wasteful.

Jesse Donat donatj Update accepted/
`stripos` is extravagant and wasteful.
Renan Gonçalves


How long until someone checks the issue tough?

Paul Dragoonis

I agree that case insensitivity is irrelevant when looking for / chars. merging this PR.

Paul Dragoonis dragoonis merged commit cc72fba into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 1, 2012
  1. Jesse Donat

    Update accepted/

    donatj authored
    `stripos` is extravagant and wasteful.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  accepted/
2  accepted/
@@ -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;
Something went wrong with that request. Please try again.