symfony/symfony — pull request #4225 by Tobion (2012-05-08 08:21:33+00:00)
Title: [Routing] enhanced and fixed RouteCompiler

Test pass: yes
Feature addition: yes (escaping of placeholders)
Fixes: #4215
BC break: no (unless somebody used a route like `/\{var}` that is now used as escaping syntax)

The first commit just adds an unrelated test to ensure matching is eager.
The second commit adds failing test cases to demonstrate the issues mentioned in #4215.
The third commit fixes them all.