Bug Report #4631

Proper error reporting of wrong PHP version

Added by Mathias Brodala over 1 year ago. Updated 11 months ago.

Status:ClosedStart date:10/25/2012
Priority:NormalDue date:
Assignee:Lorenzo Pisani% Done:

0%

Category:-
Target version:3.3.1
Resolution:wontfix 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

#2 Updated by Mathias Brodala over 1 year 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?

#3 Updated by Robert-Jan Dreu -rjd22- 11 months 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.

#4 Updated by Lorenzo Pisani 11 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.

Also available in: Atom PDF