heroku/heroku-buildpack-php — pull request #52 by erjiang (2014-05-28 20:20:15+00:00)
Title: Make apache2 RewriteRule ungreedy

This diff changes the first part of the regex to be ungreedy instead of greedy. This means that a URL like this:

`/myapp/foo.php/some/path_info/stuff.php`

instead of being split as:

`$1`=`/myapp/foo.php/some/path_info/stuff.php`

gets split as:

`$1`=`/myapp/foo.php` and PATH_INFO=`/some/path_info/stuff.php`

Some PHP applications are structured such that `foo.php` routes requests, but the PATH_INFO may have ".php" as a substring.