Skip to content

Updates for PHP 7.4 compatibility - #360

Closed
rjpdev wants to merge 10 commits into
ExpressionEngine:stabilityfrom
rjpdev:stability
Closed

rjpdev wants to merge 10 commits into
ExpressionEngine:stabilityfrom
rjpdev:stability

Conversation

@rjpdev

@rjpdev rjpdev commented Jan 22, 2020

Copy link
Copy Markdown

Overview

NEEDS TESTING

This collection updates just a few lines for PHP 7.4 errors/warnings/deprecation notices.

It's basically just a few ternary statements to make sure something exists before it's called (various files), plus little syntax adjustments in one file (mod.channel.php), and a PHP version check for magic_quotes in another (Input.php).

Changed files include:

system/ee/EllisLab/ExpressionEngine/Model/Channel/ChannelLayout.php
system/ee/EllisLab/Addons/channel/mod.channel.php
system/ee/EllisLab/Addons/rte/libraries/Rte_lib.php
system/ee/legacy/libraries/channel_entries_parser/components/Category.php
system/ee/legacy/libraries/Template.php
system/ee/legacy/core/Input.php

Is this backwards compatible?

Needs proper testing with PHP 5.6 - 7.3.

rjpdev added 8 commits January 2, 2020 22:03
Fixes include() parameter order consistency with explode() to suppress deprecation warnings in PHP 7.4.
Fixes bool error in PHP 7.4 by providing an empty value if category images are not set.
Added PHP version check to the get_magic_quotes_gpc check since it got deprecated in 7.4 and throws a warning.
Removes an errant space and fixes PHP 7.4 notice (when debugging):

"Trying to access array offset on value of type bool"

Added some checks before $last['time'] and $last['memory'] are used for debugging.
Remove notice in 7.4 by creating simple check for the include jquery_ui variable before checking if it exists.
Add check for $field_name value before checking $field_name.
Added changes and formatting.
@dougblackjr dougblackjr mentioned this pull request Feb 18, 2020
5 of 10 tasks
rjpdev added 2 commits March 15, 2020 16:14
Fixes deprecation warning messages: Array and string offset access syntax with curly braces is deprecated
Fixes deprecation warning messages: Array and string offset access syntax with curly braces is deprecated
@dougblackjr dougblackjr mentioned this pull request Mar 24, 2020
3 of 10 tasks
@obfuscode
obfuscode changed the base branch from stability to master April 21, 2020 14:14
@obfuscode
obfuscode changed the base branch from master to stability April 21, 2020 14:14
@obfuscode

Copy link
Copy Markdown
Contributor

Conflicts were resolved locally and pushed up to stability directly. Closing this PR.

@obfuscode obfuscode closed this Apr 21, 2020
intoeetive pushed a commit that referenced this pull request Oct 27, 2021
EECORE-482 Creating a template group shouldn't have the abilit to clone "None"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants