Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93948 invoked by uid 1010); 22 Feb 2005 20:39:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93932 invoked by uid 1007); 22 Feb 2005 20:39:08 -0000 Message-ID: <20050222203908.93931.qmail@lists.php.net> To: internals@lists.php.net, Stephan Schmidt Date: Tue, 22 Feb 2005 21:38:55 +0100 References: <421B913F.8030002@php-tools.net> Lines: 46 User-Agent: KNode/0.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Posted-By: 217.235.253.123 Subject: Re: realpath() and destructors From: johannes@php.net (Johannes Schlueter) Hi Stephan, this is by design and was discussed before, please check the archives. And should happen on Linux with mod_php, too. johannes Stephan Schmidt wrote: > Hi, > > I found another strange behaviour in PHP5, it occurred only on my > Windows machine using the Apache SAPI (tried it on Debian with PHP-CGI > and it worked fine). > > The following code: > > class Foo > { > public function __construct() > { > echo realpath('./') . "\n"; > } > > public function __destruct() > { > echo realpath('./') . "\n"; > } > } > > $foo = new Foo(); > ?> > > returns: > > c:\www\projects\pat\patportal\examples > c:\programme\apache group\Apache > > Best regards, > > Stephan -- Johannes Schlüter Mayflower GmbH / ThinkPHP http://thinkphp.de http://blog.thinkphp.de