SessionInterfaceHandler is throwing a deprecation notice as a warning instead of a deprecation
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Facilidade para iniciantes
- 74/100
Direção de pesquisa
O issue aponta para ext/session/session.c, em session_handler_interface_gets_implemented(). Leia as duas verificações de métodos ausentes e procure diagnósticos próximos com nível de depreciação para seguir a convenção do projeto. Altere o nível de aviso dessas notificações, depois execute os testes de sessão relevantes e confirme que a ausência de create_sid() e validateId() produz notificações de depreciação.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- C
- Estrelas
- 41.9k
- Forks
- 8.5k
- Merge médio
- 2d 16h
- PRs com merge (30d)
- 116
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de php/php-src
-
getimagesize(): WebP VP8 dimensions are accepted with an invalid start codeTalvez já em andamento @lazerg assumiu hoje. AbertaBug Status: Needs Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Bug Status: Needs Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
php/php-src#25962 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Bug Status: Needs Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
Bug Status: Needs Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
BMP width above INT_MAX is published as a negative HTML attributeTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. AbertaBug Status: Needs Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de php/php-src
Issues semelhantes
-
RecompLauncher supportAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
shinyquagsire23/OpenJKDF2#540 ·
Mantenedores costumam responder em até 12 dias
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or signAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Life-Framework/Life-Framework#5939 ·
Mantenedores costumam responder em até 1 dia
-
autoconf failes to find libsodium even when present due to implicit function declarationTalvez já em andamento @coderjoe assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 13 dias
-
enhancement_package: a site operand of another JSON type raises TypeError, not a named refusalAbertabug python
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 87/100
Jstar269/nakagawa-recomp#3521 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100