Bug #7426

Catch fatal error message when running PHP < 5.3

Added by Martin H. over 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
-
Start date:
2010-04-27
Due date:
% Done:

100%

Estimated time:
1.00 h
PHP Version:
Has patch:
Complexity:

Description

I thought that I have PHP 5.3 installed but got a fatal error message instead of FLOW3 welcome message.
Finally I realized that I'm still running PHP 5.2 but I didn't get a warning message from FLOW3 system.

The Web/index.php file should be compatible to PHP versions < 5.3 and if the server is running a smaller version than 5.3 it should print an error message and the setup guide from Getting Started tutorial (or a link to it).

#1

Updated by Karsten Dambekalns about 11 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Karsten Dambekalns
  • Start date changed from 2010-04-22 to 2010-04-27

What exact error message do you get?

#2

Updated by Martin H. about 11 years ago

Hi Karsten,

Warning: require(__DIR__/../Packages/Framework/FLOW3/Scripts/FLOW3.php) [function.require]: failed to open stream: No such file or directory in [...]/index.php on line 31

Fatal error: require() [function.require]: Failed opening required '__DIR__/../Packages/Framework/FLOW3/Scripts/FLOW3.php' (include_path='.:/usr/share/php:/usr/share/pear') in [...]/index.php on line 31

(on FLOW3-1.0.0-alpha8-build24)

The magic constant DIR came with PHP 5.3 and is unknown smaller PHP versions.

#3

Updated by Karsten Dambekalns about 11 years ago

  • Status changed from Needs Feedback to Accepted
  • Target version set to 1.0 alpha 9
#4

Updated by Karsten Dambekalns about 11 years ago

  • Tracker changed from Feature to Bug
#5

Updated by Karsten Dambekalns about 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h

As of r4228:
[+BUGFIX] FLOW3 Distribution: The Web/index.php used DIR, thus breaking our carefully crafted path to a nice error message for PHP < 5.3. Fixes #7426.

Also available in: Atom PDF