ID: 43442 Updated by: [EMAIL PROTECTED] Reported By: cjshark at mail dot ru Status: Open Bug Type: Scripting Engine problem Operating System: FreeBSD v60 PHP Version: 5.2.5 New Comment:
This is not what I'm seeing, I see the correct: construct<br>method!!<br>destruct<br> Previous Comments: ------------------------------------------------------------------------ [2007-11-28 17:48:15] cjshark at mail dot ru 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43442&edit=1