Bug->Doc #81677 [Opn->Ver]: realpath result is cached
[email protected] Wed, 01 Dec 2021 10:50:04 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=81677&edit=1 ID: 81677 Updated by: [email protected] Reported by: jozef dot briss at gmail dot com Summary: realpath result is cached -Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem Package: Filesystem function related Operating System: Linux PHP Version: 7.4.26 Block user comment: N Private report: N New Comment: > Realpath function is using realpath_cache. While this shouldn't be surprising, I agree that the documentation of the realpath cache (and also the stat chache) could be improved. Previous Comments: ------------------------------------------------------------------------ [2021-11-30 17:31:18] jozef dot briss at gmail dot com Description: ------------ Realpath function is using realpath_cache. This is not documented anywhere. Test script: --------------- <?php exec("ln -nsf test1 test"); echo realpath("test") . "\n"; exec("ln -nsf test2 test"); echo realpath("test") . "\n"; Expected result: ---------------- /home/****/realpath/test1 /home/****/realpath/test2 Actual result: -------------- /home/****/realpath/test1 /home/****/realpath/test1 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81677&edit=1