|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-29 08:03 UTC] derick@php.net
[2007-11-29 10:39 UTC] jani@php.net
[2007-11-30 11:00 UTC] cjshark at mail dot ru
[2007-12-03 11:14 UTC] jani@php.net
[2007-12-11 01:00 UTC] php-bugs at lists dot php dot net
[2007-12-14 17:07 UTC] camelot at plevel dot com
[2008-02-07 14:22 UTC] info at cvmedia dot de
[2008-02-10 21:19 UTC] johannes@php.net
[2008-02-18 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 07:00:02 2025 UTC |
Description: ------------ __destruct is calling right after __construct before using any methods! Reproduce code: --------------- class test { function __construct() { echo "construct<br>"; } function method($i) { echo $i."<br>"; } function __destruct() { echo "destruct<br>"; } } $cl = new test(); $cl->method('method!!'); Expected result: ---------------- construct method!! destruct Actual result: -------------- construct destruct method!! destruct