Problem/Motivation
#2388255: (followup) Limit PDO MySQL to executing single statements if PHP supports it introduces an REQUIREMENTS_INFO for the recommended PHP version.
Proposed resolution
Change it to REQUIREMENTS_WARNING and fix the tests.
I'm not sure if this requirement warning is important enough to show during install anyway though (maybe only after install). It would be an annoying interruption for anyone installing with PHP 5.4 since it's not too likely they'll drop what they're doing and switch to a different PHP version in the middle of the install.
Discuss this.
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | make_php_version_info_a-2452587-6.patch | 1.36 KB | hussainweb |
Comments
Comment #1
dawehnerComment #2
timmillwoodIn #2524432: Suggest PHP 5.6 as the recommended version I am working to modify the work done in #2388255: (followup) Limit PDO MySQL to executing single statements if PHP supports it and also add a recommendation for PHP 5.6.5.
I don't believe
REQUIREMENT_INFOgive enough notice to the potential issue.REQUIREMENT_INFOis used for the standard PHP version information, therefore stating "everything is ok". I feel we need to useREQUIREMENT_WARNINGmore.Also why are we using
REQUIREMENT_INFOwhen we should be usingREQUIREMENT_OK?I am reopening this and specifically for the
REQUIREMENT_INFOvsREQUIREMENT_OKaspect I'm making this "major"!Comment #3
daffie commented+1 or changing the
REQUIREMENT_INFOtoREQUIREMENT_WARNINGfor sites using a PHP version lower then 5.6.5.Comment #4
dawehnerI just don't believe what should block people from using 5.5, its perfectly fine IMHO, so INFO for the general works. I much rather care about the subversion thing.
Comment #5
timmillwoodSo... I've been doing some digging.
I think we should use
REQUIREMENT_INFOfor the recommended PHP info, it's not a blocker so not a warning, it's not really perfect so not ok, therefore it's info. However the issue is Drupal 8 default all requirements that don't have an explicit severity set default to info, I believe they should default to ok, then we can bubble up things like PHP version as info.The new patches in #2528242: Add color-* classes to all rows on the status page and #2528270: Use RequirementSeverity::OK by default help to move this forward.
Comment #6
hussainwebI am just posting a patch to get things started. I am using REQUIREMENT_INFO as that seems to be the consensus as of #5.
Comment #7
timmillwood@hussainweb - This patch looks to duplicate the work in #2524432: Suggest PHP 5.6 as the recommended version.
Marking as won't fix because #2524432: Suggest PHP 5.6 as the recommended version will cover adding a check for 5.6.5, then #2528242: Add color-* classes to all rows on the status page and #2528270: Use RequirementSeverity::OK by default will raise the importance of
REQUIREMENT_INFO.Comment #8
hussainwebFunny, policy issues usually don't have patches.