Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a31deeb

Browse files
sualkofabpot
authored andcommitted
Update RouteCompiler.php
Fixes INF problem on solaris.
1 parent f9d683e commit a31deeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Routing/RouteCompiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function compile(Route $route)
6868
}
6969

7070
// find the first optional token
71-
$firstOptional = INF;
71+
$firstOptional = PHP_INT_MAX;
7272
for ($i = count($tokens) - 1; $i >= 0; $i--) {
7373
$token = $tokens[$i];
7474
if ('variable' === $token[0] && $route->hasDefault($token[3])) {

0 commit comments

Comments
 (0)