symfony/symfony — pull request #3097 by kriswallsmith (2012-01-11 19:46:44+00:00)
Title: optimized string starts with checks

Doing this with strpos() is slightly faster than substr().

```
Bug fix: no
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
```