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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to