Parse error before installation on PHP 5.3.29 instead of message about higher PHP version required

Created on 8 October 2015, almost 9 years ago
Updated 12 March 2023, over 1 year ago

Hi there.

So I wanted to check how RC1 works and after copying all files and trying to get to the installation process via browser I get this error on PHP 5.3.29:

Parse error: syntax error, unexpected '[', expecting ')' in /my_path_to_drupal8_directory/vendor/guzzlehttp/promises/src/functions.php on line 41

I have forgotten to change the PHP version to PHP 5.5.9 or higher but IMHO I should get a nice message about wrong PHP version, not an error.

What do you think about it?

PS. I was looking for the similar issue in Google but couldn't find one.

📌 Task
Status

Closed: outdated

Version

9.5

Component
Install 

Last updated 2 days ago

No maintainer
Created by

🇵🇱Poland gumol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone New Zealand

    I tested this on Drupal 10.1.x, using ddev, with an existing standard install. I set PHP to 7.3 and re-started ddev. I used phpmyadmin to drop all the site tables. Then I navigated to /core/install.php and got this error message
    Your PHP installation is too old. Refer to the Drupal PHP requirements for the currently recommended PHP version for this release. See PHP's version support documentation for more information on PHP's own support schedule.

    And from index.php this error message,

    Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 7.3.33-10+0~20230214.103+debian11~1.gbp88ff76. in /var/www/html/vendor/composer/platform_check.php on line 24
    

    Both of those error messages are more helpful than the parse error reporting in the Issue Summary. I think this can be closed now.

Production build 0.71.5 2024