Skip to content

phpsessionclean not using settings in {conf_dir}/conf.d/ directory #22758

Description

@wsywr

Description

Hi
(debian)
When doing php.ini overrides on my server (this is usally done by putting a 99-settings.ini file inside each /conf.d/ ) the phpsessionclean will not respect those values.

phpsessionclean will keep running on files older than 1440 (which is set in the php.ini file)

gemini says this line should have a ":" after the conf.d/ but i dont have enough expertise to say whether that is right or wrong.
session_config=$(PHP_INI_SCAN_DIR=/etc/php/${version}/${conf_dir}/conf.d/ "/usr/bin/php${version}" -c "/etc/php/${version}/${conf_dir}/php.ini" -d "error_reporting='~E_ALL'" -r 'foreach(ini_get_all("session") as $k => $v) echo "$k=".$v["local_value"]."\n";')

Anyway. this forces me to do my own script override until its fixed.
im not even sure this is a php issue or it is a php-debian package hook issue?

thanks!

PHP Version

tested with

PHP8.5,
PHP8.4,
PHP8.3,
PHP8.2,
PHP8.1,
PHP8.0

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions