[php-src] Issue #14899: filesize() returns false on symlink
| From: | RV7PR | Date: | Wed, 10 Jul 2024 11:53:16 +0000 |
| Subject: | [php-src] Issue #14899: filesize() returns false on symlink | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247264@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14899
Author: RV7PR
### Description
filesize() returns false on symlink with warning: ``
filesize(): stat failed for
{filename}``
I have to use lstat($symlink)['size'] to get size of a symlink
### PHP Version
PHP 8.3.8
### Operating System
CentOS Stream release 9