# stat cache status?

- Thread: https://externals.io/message/14225
- Original archive: https://news-web.php.net/php.internals/14225
- Started by Rasmus Lerdorf on 2004-12-29T00:54:42+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #14225 — Rasmus Lerdorf — 2004-12-29T00:54:42+00:00

URL: https://externals.io/message/14225#14225

In TSRM/tsrm_virtual_cwd.c around line 594 we have:

#ifdef REALPATH_CACHE
     if (ret == 0 && use_realpath && CWDG(realpath_cache_size_limit)) {
         realpath_cache_add(orig_path, orig_path_len, state->cwd, 
state->cwd_length, t TSRMLS_CC);
     }
#endif

As far as I can tell ret can't be anything except 0 at that point in the 
code.  Did something get shuffled around?  What is that ret check for?

-Rasmus

---

## #14226 — Andi Gutmans — 2004-12-29T01:17:08+00:00

URL: https://externals.io/message/14225#14226 · In reply to: #14225

Defined in tsrm_virtual_cwd.h. It's been active for a while.
Andi

At 07:54 PM 12/28/2004 -0500, Rasmus Lerdorf wrote:
>In TSRM/tsrm_virtual_cwd.c around line 594 we have:
>
>#ifdef REALPATH_CACHE
>     if (ret == 0 && use_realpath && CWDG(realpath_cache_size_limit)) {
>         realpath_cache_add(orig_path, orig_path_len, state->cwd, 
> state->cwd_length, t TSRMLS_CC);
>     }
>#endif
>
>As far as I can tell ret can't be anything except 0 at that point in the 
>code.  Did something get shuffled around?  What is that ret check for?
>
>-Rasmus
