Bug Report #4631

Proper error reporting of wrong PHP version

Added by Mathias Brodala over 2 years ago. Updated over 1 year ago.

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


Target version:3.3.1
Resolution:wontfix Points:1


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.


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