stat cache status?

php.internals

Rasmus Lerdorf

21 years ago
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

Andi Gutmans

21 years ago
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:

Rasmus Lerdorf

21 years ago
What's defined in tsrm_virtual_cwd.h? ret? How so? My question was what the ret==0 check was for. -Rasmus Andi Gutmans wrote:

Andi Gutmans

21 years ago
Oh, I misunderstood the question. You are right. Seems like it's useless. I'll look into it and get back to you. Andi At 08:20 PM 12/28/2004 -0500, Rasmus Lerdorf wrote: