PHP 8.1 compatibility

Created on 9 January 2023, almost 2 years ago
Updated 19 January 2024, 9 months ago

Deprecated function: trim(): Passing null to parameter and Deprecated function: strlen(): Passing null to parameter

When running the module with PHP 8.1 the following error will be logged:

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in trim() (line 1835 of httprl.module)
Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in function httprl_parse_data() (строка 1835 of httprl.module).
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in strlen() (line 871 of httprl.module).
Deprecated function: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in function httprl_handle_data() (строка 871 of httprl.module).

🐛 Bug report
Status

Active

Version

1.14

Component

Code

Created by

🇷🇺Russia wamwam

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

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

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.

Production build 0.71.5 2024