symfony/symfony — pull request #3096 by kriswallsmith (2012-01-11 19:45:16+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: -
```