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
--
http://www.php-tools.net
http://www.schst.net
http://pear.php.net

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



Reply via email to