During installation, it appears that the install system ignores that there might be profiles/modules that have a php = 5.3 (or whatever) requirement in their .info file. It blithely installs regardless, which can cause all manner of problems (fatal errors, etc.). See #1724012: Parse error: syntax error, unexpected T_FUNCTION in PHP 5.2 for more info.

Once the profile is installed, the modules page correctly shows an "X", not allowing you to turn it on (or, in this case, turn it off). Drush seems to ignore these requirements entirely and will let you dis/en whatever you want.

I'm filing this as a "major" because even though requiring a certain version of PHP isn't entirely widespread, what happens is completely broken behaviour.

CommentFileSizeAuthor
#4 Extend___Site-Install.png120.25 KBjhedstrom
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

I believe the culprit is drupal_verify_profile(), which only checks for missing dependencies, not whether their PHP versions match. (it doesn't load the .info files at that point to check).

willvincent’s picture

webchick’s picture

Priority: Major » Normal

Demoting to normal.

jhedstrom’s picture

Version: 8.0.x-dev » 7.x-dev
Issue summary: View changes
FileSize
120.25 KB

This is fixed in 8.x, it might still be an issue in 7.x.