Permalink
Browse files

Update RouteCompiler.php

Fixes INF problem on solaris.
  • Loading branch information...
1 parent 4c44279 commit f49c32b0c3b761511dcd60034eeca9020e3c9a3c @sualko sualko committed with fabpot Mar 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 RouteCompiler.php
View
@@ -68,7 +68,7 @@ public function compile(Route $route)
}
// find the first optional token
- $firstOptional = INF;
+ $firstOptional = PHP_INT_MAX;
for ($i = count($tokens) - 1; $i >= 0; $i--) {
$token = $tokens[$i];
if ('variable' === $token[0] && $route->hasDefault($token[3])) {

0 comments on commit f49c32b

Please sign in to comment.