PHP 8.1: Deprecated function: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in restws_page_callback()

Created on 24 May 2022, over 2 years ago
Updated 12 June 2024, 5 months ago

With PHP 8.1: Deprecated function: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in restws_page_callback()

1. Install D7
2. Install restws
3. Visit frontpage

🐛 Bug report
Status

Needs review

Version

2.10

Component

Code

Created by

🇺🇸United States djdevin Philadelphia

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.

  • 🇮🇳India vineshmalviya

    Upgraded to Restws 2.10 the patch applied in this is already there for $id_arg and for $resource_arg it was missing hence adding the additional updates

    $id_arg or $resource_arg could be null, and in PHP 8 that is no longer allowed to be passed to most string functions.

  • 🇮🇳India vineshmalviya

    Upgraded to Restws 2.10 the patch applied in this is already there for $id_arg and for $resource_arg it was missing hence adding the additional updates

    $id_arg or $resource_arg could be null, and in PHP 8 that is no longer allowed to be passed to most string functions.

Production build 0.71.5 2024