Re: realpath() and destructors
| From: | Johannes Schlueter | Date: | Tue, 22 Feb 2005 20:38:55 +0000 |
| Subject: | Re: realpath() and destructors | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-15157@lists.php.net to get a copy of this message | ||
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:
>
> <?php
> 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