Doc #81677 [Com]: realpath result is cached
[email protected] ("bxc67df at protonmail dot com") Thu, 03 Mar 2022 12:51:02 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=81677&edit=1 ID: 81677 Comment by: bxc67df at protonmail dot com Reported by: jozef dot briss at gmail dot com Summary: realpath result is cached Status: Verified Type: Documentation Problem Package: Filesystem function related Operating System: Linux PHP Version: 7.4.26 Block user comment: N Private report: N New Comment: Thanks https://altosaxo.net/products/sugarcult-t-shirt-men https://altosaxo.net/products/radkey-t-shirt-men https://altosaxo.net/products/dizzy-mizz-lizzy-t-shirt-men https://altosaxo.net/products/crashdiet-t-shirt-men https://altosaxo.net/products/audioslave-t-shirt-men Previous Comments: ------------------------------------------------------------------------ [2022-03-03 12:50:24] ad3czxf at protonmail dot com Thanks https://altosaxo.net/products/the-lillingtons-t-shirt-men https://altosaxo.net/products/phoebe-bridgers-t-shirt-women https://altosaxo.net/products/mother-feather-t-shirt-men https://altosaxo.net/products/doll-skin-t-shirt-men https://altosaxo.net/products/tribulation-t-shirt-men ------------------------------------------------------------------------ [2022-03-03 12:49:34] vbzxc453 at protonmail dot com Thanks https://altosaxo.net/products/my-chem-t-shirt-men https://altosaxo.net/products/hoobastank-t-shirt-men https://altosaxo.net/products/born-of-osiris-t-shirt-men https://altosaxo.net/products/tetrarch-t-shirt-men https://altosaxo.net/products/amyl-and-the-sniffers-t-shirt-men ------------------------------------------------------------------------ [2021-12-01 10:50:04] [email protected] > 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. ------------------------------------------------------------------------ [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