phpsessionclean not using settings in {conf_dir}/conf.d/ directory
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.1k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem phpsessionclean-Einstiegspunkt und reproduziere das Problem mithilfe des gezeigten PHP-Befehls, PHP_INI_SCAN_DIR und der Debian-Pfade /etc/php/{version}/{conf_dir}/. Verfolge, wie die Sitzungseinstellungen gelesen werden, und bestätige, dass Werte aus conf.d/ berücksichtigt werden; abgeschlossen ist die Aufgabe, wenn die Bereinigung die konfigurierte Sitzungslebensdauer über alle aufgeführten PHP-Versionen hinweg verwendet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 42/100