Catch fatal error message when running PHP < 5.3
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).
Updated by Martin H. almost 11 years ago
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
The magic constant DIR came with PHP 5.3 and is unknown smaller PHP versions.
Updated by Karsten Dambekalns over 10 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.