Cli condition resolver breaks when register_argc_argv=on

Created on 22 March 2024, 3 months ago
Updated 21 June 2024, 5 days ago

Problem/Motivation

When the php.ini register_argc_argv setting is on then the cli condition resolver decides that a request is cli (true value) even if it is not. That's because argc and argv in $_SERVER are filled.

Steps to reproduce

enable register_argc_argv in php.ini and log something while the conditional handler uses the cli resolver.

Proposed resolution

remove the argc+argv part, using only the sapi condition.

Remaining tasks

mr incoming.

User interface changes

none.

API changes

none.

Data model changes

none.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇪🇸Spain grota

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024