Bug->Doc #81677 [Opn->Ver]: realpath result is cached

From: Date: Wed, 01 Dec 2021 10:50:04 +0000
Subject: Bug->Doc #81677 [Opn->Ver]: realpath result is cached
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19349@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81677&edit=1

 ID:                 81677
 Updated by:         cmb@php.net
 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


Thread (10 messages)

« previous php.doc.bugs (#19349) next »