Yep that works too, what's your preference? Also should I send extra pull
requests to back port this?
On 18/05/2013 8:18 AM, "Tobias Schultze" <notifications@github.com> wrote:

> In src/Symfony/Component/ClassLoader/ClassLoader.php:
>
> > @@ -177,7 +177,7 @@ public function findFile($class)
> >          $classPath .= str_replace('_', DIRECTORY_SEPARATOR, $className).'.php';
> >
> >          foreach ($this->prefixes as $prefix => $dirs) {
> > -            if (0 === strpos($class, $prefix)) {
> > +            if ($class == strstr($class, $prefix)) {
>
> what about ('' === strstr($class, $prefix, true))
>
> Also you should use strict comparison anyway.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/symfony/symfony/pull/8081/files#r4285627>
> .
>