Fix regression caused by ::class constant

Created on 19 April 2023, over 1 year ago
Updated 21 April 2023, over 1 year ago

Problem/Motivation

The security release of Drupal 7 ( 7.96 ) caused a regression for sites running on the PHP 5.3 and PHP 5.4:

PHP Parse error:  syntax error, unexpected T_CLASS, expecting T_STRING or T_VARIABLE or '$' in /includes/file.inc on line 2752

::class constant was introduced only in PHP 5.5. Sites running on PHP versions >= 5.5 are not affected by this regression.

Steps to reproduce

Run DrupalCI tests (PHP 5.3 or PHP 5.4), see: https://www.drupal.org/pift-ci-job/2647237

Proposed resolution

Fix the class constant to work also on PHP 5.3 and PHP 5.4.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

7.0 ⚰️

Component
Bootstrap 

Last updated 1 day ago

No maintainer
Created by

🇸🇰Slovakia poker10

Live updates comments and jobs are added and updated live.
  • PHP 5.3

    The issue particularly affects sites running on PHP version 5.3.0 or later.

  • PHP 5.4

    The issue particularly affects sites running on PHP version 5.4.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024