[php-src] Issue #22758: phpsessionclean not using settings in {conf_dir}/conf.d/ directory

[email protected] (wsywr) Thu, 16 Jul 2026 10:39:04 +0000
Newsgroups php.bugs
Message-ID <9c5LwjzdKbTKL5HiFbjpZxp0J5Ui6aCL4jv8WJj1S8A@main.internal.php.net>
Issue: https://github.com/php/php-src/issues/22758
Author: 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

```plain
tested with

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

### Operating System

_No response_