Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update accepted/PSR-0.md #53

Merged
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/PSR-0.md
`stripos` is extravagant and wasteful.
5f80e82
Renan Gonçalves

:+1:

How long until someone checks the issue tough?

Paul Dragoonis
Owner

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/PSR-0.md

    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/PSR-0.md
2  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;
Something went wrong with that request. Please try again.