NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0018545phplist applicationOtherpublic22-02-17 18:0322-02-17 21:44
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version3.3.1 
Target VersionFixed in Version3.3.2 
Summary0018545: Fatal errors on php version are issued too late
DescriptionIn admin/index.php there are two places where fatal errors are issued due to running an old release of php.

The errors are issued after the main page processing has happened, which makes it likely that any php incompatibilities will already have been hit. So the processing would have failed and not get to the point of issuing the fatal error.
Generally php errors, such as parse/compile failures or use of non-existent methods tend to fail without any information.

It would seem to be better to issue these tests of the php version as early in the processing as possible before any files are included.

The code that tests the php version and issues the fatal errors has dependencies on the fatal_error() and s() functions, so it would be safer to just issue the error directly or with a new function that does not have any dependencies.

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
michiel (manager)
22-02-17 19:10

Do you mean the version check and the release date check?

Yes, I guess you're right
michiel (manager)
22-02-17 19:11

Although the release date check is not a PHP version check, but a phpList "age" check. For security, I think it's better if we force people to upgrade. Otherwise we will contribute to worm propagation.
duncanc (developer)
22-02-17 19:22

Yes, I mean the version and release date checks.

My point is that you can get syntax and other errors by having an old version of php, so it is best to try to avoid those by issuing the error as early as possible. Otherwise there is a danger of getting a general 500 error.
michiel (manager)
22-02-17 21:44 [^]

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker