Bug #7426

Catch fatal error message when running PHP < 5.3

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

Status:Resolved Start date:2010-04-27
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:-
Target version:TYPO3 Flow Base Distribution - 1.0 alpha 9 Estimated time:1.00 hour
PHP Version: Complexity:
Has patch: Affected Flow version:

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).

Associated revisions

Revision 5d582d81
Added by Karsten Dambekalns over 5 years ago

[+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.

History

#1 Updated by Karsten Dambekalns over 5 years ago

  • Status changed from New to Needs Feedback
  • Assigned To 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. over 5 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 over 5 years ago

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

#4 Updated by Karsten Dambekalns over 5 years ago

  • Tracker changed from Feature to Bug

#5 Updated by Karsten Dambekalns over 5 years ago

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

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