Bug Report #4631

Proper error reporting of wrong PHP version

Added by Mathias Brodala 7 months ago. Updated 4 days ago.

Status:New Start date:10/25/2012
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:3.3.1
Resolution: Points:1

Description

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.

History

Updated by Mathias Brodala 6 months ago

That's true, forgot about that. Do you nevertheless think a hint about the issue could be shown instead of the not really useful PHP error?

Updated by Robert-Jan Dreu -rjd22- 4 days ago

This issue can be closed. The issue of a wrong PHP version only happens when you install Kohana. At that moment you have install.php still in your directory which is included in the index.php on line 82 so gets executed.

Also available in: Atom PDF