Compiled PHP for customized route matching
minor #4343 Compiled PHP for customized route matching (GeertDD)

This PR was submitted for the master branch but it was merged into the 2.4 branch instead (closes #4343).

Discussion
----------

Compiled PHP for customized route matching

The second parameter of `rtrim()` is a character mask. By checking if `rtrim($pathinfo, '/contact') === ''`, `$pathinfo` could be any URL containing those characters and not only "/contact" which was configured as the route path, for example:

    $pathinfo = '/octocat';
    var_dump(rtrim($pathinfo, '/contact') === ''); // bool(true)

Commits
-------

fb5e820 Compiled PHP for customized route matching
Reverted fb5e82