Re: include bug in 5.3

From: Date: Sat, 09 Aug 2008 10:31:02 +0000
Subject: Re: include bug in 5.3
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-39792@lists.php.net to get a copy of this message
Where is it documented? The realpath() implementation conforming to 4.4BSD and POSIX.1-2001 requires file existence. With the patch it'll work in the same standard way on all systems. Thanks. Dmitry. Hannes Magnusson wrote:
On Fri, Aug 8, 2008 at 17:52, Dmitry Stogov <dmitry@zend.com> wrote:
Hi, The attached patch is going to fix the problem. It implements its own realpath() function, so we won't depend on system anymore. It also improve realpath cache usage by caching intermediate results. I tested it on Linux and Windows only and it seems to work without problems. It breaks one test related to clearstatcache() function, but this break is expected. Could you please test it. Does it really fix the bug on FreeBSD?
Yup. But it introduces a new one. realpath() no longer works as documented, now requiring all the components to exist. -Hannes


« previous php.internals (#39792) next »