Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 313861

system_requirements() php warnings and errors use the same key, so only one is ever shown

$
0
0

Problem/Motivation

Follow-up to #2551725-14: Remove system_requirements() SafeMarkup::set() use with 'value' key

system_requirements() php warnings and errors use the same key, so only one is ever shown

steps to reproduce

ways of making php errors

  1. get an old version of php (or hack core to make it think it is old) (either pre 5.6.5 or 5.5.21)
  2. get an old version of php (or hack core to make it think it is old) (pre 5.5.9)
  3. disable phpinfo (or hack core to make it think it is not there)

*steps for install phase*

  1. make it so the install will fail (rename settings.php)
  2. make warnings or errors show
  3. attempt to install
  4. look at the requirements page

*steps for runtime phase*

  1. install
  2. make warnings or errors show
  3. look at admin/reports/status

Proposed resolution

Use different keys for each message (and maybe different titles)
or
(dont do this, cause some are warnings and some are errors) append the message descriptions so all the info that is relevant gets shown.

add test coverage that messages show when they should, (especially a test case where more than one php message is relevant)

Remaining tasks

Contributor tasks needed
TaskNovice task?Contributor instructionsComplete?
Create a patchInstructions
Add automated testsInstructions
Manually test the patch NoviceInstructions
Add steps to reproduce the issueNoviceInstructions(done)
Embed before and after screenshots in the issue summary NoviceInstructions
Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standardsInstructions

User interface changes

when more than one requirement message is relevant, they will each show.

API changes

no

Data model changes


Viewing all articles
Browse latest Browse all 313861

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>