SessionInterfaceHandler is throwing a deprecation notice as a warning instead of a deprecation
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 74/100
Direzione di ricerca
La issue rimanda a ext/session/session.c, in session_handler_interface_gets_implemented(). Leggi i due controlli dei metodi mancanti e cerca nelle vicinanze diagnostiche con un livello di deprecazione per seguire la convenzione del progetto. Modifica il livello di avviso per queste notifiche, quindi esegui i test di sessione pertinenti e conferma che l’assenza di create_sid() e validateId() produca notifiche di deprecazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
static void session_handler_interface_gets_implemented(zend_class_entry *self, zend_class_entry *class) {
if (!zend_hash_str_exists(&class->function_table, ZEND_STRL("create_sid"))
&& !session_interfaces_include(class, php_session_id_iface_entry)) {
zend_error(E_WARNING,
"Class %s implementing SessionHandlerInterface is missing the create_sid() method which will be required in PHP 9.0",
ZSTR_VAL(class->name));
}
if (!zend_hash_str_exists(&class->function_table, ZEND_STRL("validateid"))
&& !session_interfaces_include(class, php_session_update_timestamp_iface_entry)) {
zend_error(E_WARNING,
"Class %s implementing SessionHandlerInterface is missing the validateId() method which will be required in PHP 9.0",
ZSTR_VAL(class->name));
}
}
Found this after a PHP 8.5 -> 8.6 upgrade with 3rd party software - tried to filter out deprecation notices but this is coming up as an E_WARNING instead - and it should not be
Simply changing the E_WARNING to a deprecation level should fix the issue - it's annoying!
PHP Version
PHP 8.6.0 (cli) (built: Nov 20 2026 15:07:19) (NTS)
Copyright © The PHP Group and Contributors
Built by Ubuntu
Zend Engine v4.6.0, Copyright © Zend by Perforce
with Zend OPcache v8.6.0, Copyright ©, by Zend by Perforce
Operating System
No response
- Lingua principale
- C
- Stelle
- 41.9k
- Fork
- 8.5k
- Merge medio
- 2g 16h
- PR unite (30g)
- 116
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di php/php-src
-
getimagesize(): WebP VP8 dimensions are accepted with an invalid start codeForse già presa @lazerg l’ha presa oggi. ApertaBug Status: Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Bug Status: Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
php/php-src#25962 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Bug Status: Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Bug Status: Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
BMP width above INT_MAX is published as a negative HTML attributeForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaBug Status: Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
RecompLauncher supportAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
shinyquagsire23/OpenJKDF2#540 ·
I maintainer di solito rispondono entro 12 giorni
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or signAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Life-Framework/Life-Framework#5939 ·
I maintainer di solito rispondono entro 1 giorno
-
autoconf failes to find libsodium even when present due to implicit function declarationForse già presa @coderjoe l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 13 giorni
-
enhancement_package: a site operand of another JSON type raises TypeError, not a named refusalApertabug python
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
Jstar269/nakagawa-recomp#3521 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100