Problem/Motivation

When debug mode is enabled, this PHP warning is logged:

Warning: fopen(1): failed to open stream: `8' is not a valid mode for fopen in Drupal\http_client_manager\HttpClient->getClientConfig() (line 224 of http_client_manager/src/HttpClient.php)

Proposed resolution

Fix fopen syntax.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

smokris created an issue. See original summary.

smokris’s picture

Assigned: smokris » Unassigned
Status: Active » Needs review

8 is the underlying value of the FILE_APPEND enum. That enum is valid for file_put_contents() but not for fopen(). https://git.drupalcode.org/project/http_client_manager/-/merge_requests/1 switches it to use the fopen() syntax.

  • smokris authored dc18de7 on 9.3.x
    Issue #3299826 by smokris: "Warning: fopen(1): failed to open stream: `8...
aronne’s picture

Status: Needs review » Fixed

Thank you for your contribution @smokris
Fix will be available on 9.3.1

Regards,
aronne

aronne’s picture

Status: Fixed » Closed (fixed)
smokris’s picture

Thanks, @aronne!