The behavior of lstat is inconsistent with that in C
Abierto
@bukka ya está trabajando en esto.
Desde el 19/1/2026.
Bug
Status: Needs Triage
- Lenguaje dominante
- C
- Estrellas
- 40.4k
- Forks
- 8.1k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 96
Descripción
Description
When calling lstat on a dangling symbolic link file, it fails to retrieve the inode data of the linked file and directly returns false. I understand that this might be the original design, but the behavior should not differ from that in C. Furthermore, whether the linked target file can be accessed is originally the responsibility of stat, so why should lstat also be unable to read it?
PHP Version
PHP 8.4.12 (cli) (built: Aug 26 2025 13:36:28) (NTS)
Copyright (c) The PHP Group
Built by Homebrew
Zend Engine v4.4.12, Copyright (c) Zend Technologies
with Zend OPcache v8.4.12, Copyright (c), by Zend Technologies
Operating System
No response
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.