Skip to content
Snippets Groups Projects

Issue #3277342: Fix substr issue for php8.

Closes #3277342

In PHP 7 substr returns the false but in PHP 8 it returns the '' empty string. It produces an issue when site can't be loaded if JShrink is used.

Current solution keeps backward compatibility.

See: https://www.php.net/manual/en/function.substr.php

Edited by Serhii Puchkovskyi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading