realpath() and destructors
| From: | Stephan Schmidt | Date: | Tue, 22 Feb 2005 20:08:31 +0000 |
| Subject: | realpath() and destructors | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-15155@lists.php.net to get a copy of this message | ||
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