Skip to content

Commit

Permalink
Changed the minimum php version check to 5.2.3 (is was already our mi…
Browse files Browse the repository at this point in the history
…nimum requirement, the check just wasn't up-to-date). Fixes #2494
  • Loading branch information
isaiah committed Jan 16, 2010
1 parent dc6279a commit fa9f091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* line out. When running an application on a new server, uncomment this line
* to check the PHP version quickly.
*/
version_compare(PHP_VERSION, '5.2', '<') and exit('Kohana requires PHP 5.2 or newer.');
version_compare(PHP_VERSION, '5.2.3', '<') and exit('Kohana requires PHP 5.2.3 or newer.');

/**
* Set the error reporting level. Unless you have a special need, E_ALL is a
Expand Down
4 changes: 2 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
<table cellspacing="0">
<tr>
<th>PHP Version</th>
<?php if (version_compare(PHP_VERSION, '5.2', '>=')): ?>
<?php if (version_compare(PHP_VERSION, '5.2.3', '>=')): ?>
<td class="pass">
<?php echo PHP_VERSION?>
</td>
<?php else : $failed = TRUE?>
<td class="fail">
Kohana requires PHP 5.2 or newer, this version is <?php echo PHP_VERSION?>.
Kohana requires PHP 5.2.3 or newer, this version is <?php echo PHP_VERSION?>.
</td>
<?php endif?>
</tr>
Expand Down

0 comments on commit fa9f091

Please sign in to comment.