phpsessionclean not using settings in {conf_dir}/conf.d/ directory
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.2k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the phpsessionclean entry point and reproduce the issue using the shown PHP command, PHP_INI_SCAN_DIR, and the Debian /etc/php/{version}/{conf_dir}/ paths. Trace how the session settings are read and confirm that values from conf.d/ are respected; done means cleanup uses the configured session lifetime across the listed PHP versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100