|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-06-26 03:43 UTC] david71rj at gmail dot com
Description:
------------
- See "Reproduce code" -
Reproduce code:
---------------
class Name
{
function __descruct()
{
$this->Save();
}
function Save()
{
echo realpath("./");
}
}
echo realpath("./")."\n";
$test = new Name();
Expected result:
----------------
C:/project/test
C:/wampserver/bin/apache/apache2.2.8 <-- (o.O)
Actual result:
--------------
C:/project/test
C:/project/test
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 16:00:02 2025 UTC |
Too works with: class Name { function __destruct() { echo realpath("./"); } } Don't is needly call a function.