Bug Report #4631
Proper error reporting of wrong PHP version
|Assignee:||Lorenzo Pisani||% Done:|
Kohana 3.3.0 depends on PHP 5.3, however, there is no clear hint when one mistakenly uses PHP 5.2. The following error is displayed instead:
Fatal error: Undefined class constant 'Log::EMERGENCY' in [...]/system/classes/Kohana/Kohana/Exception.php on line 140
Kohana should bail out earlier by explicitely checking the PHP version and give a clear error message.
#1 Updated by Jeremy Bush over 1 year ago
We do these checks in install.php: https://github.com/kohana/kohana/blob/3.3/master/install.php#L59
#4 Updated by Lorenzo Pisani 9 months ago
- Status changed from New to Closed
- Assignee set to Lorenzo Pisani
- Resolution set to wontfix
I agree, we can't wrap all of our uses of things with checks simply because someone could have ignored or forgotten to check the `install.php` file for any compatibility issues.