|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-06-25 18:48 UTC] tony2001@php.net
[2007-06-26 12:54 UTC] irik at future-proof dot net
[2007-06-26 13:04 UTC] tony2001@php.net
[2007-07-04 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Description: ------------ on linux (slackware) the __destruct method seems to be called twice, even before. On windows32 this behaviour is not seen. Perhaps I misunderstand the role of __destruct, but that would not explain why the behaviour differs between platforms. Reproduce code: --------------- $Test = new Test(); echo $Test->strtolower("foo bar") . "<br />"; class Test { public function __construct() { } public function __call($function, $arguments) { return call_user_func_array($function, $arguments); } public function __destruct() { echo "here i am<br />"; } } Expected result: ---------------- foo bar here i am Actual result: -------------- here i am foo bar here i am