ID:               27698
 Comment by:       Ancien_Guakamol at hotmail dot com
 Reported By:      eyglys at yahoo dot com dot br
 Status:           No Feedback
 Bug Type:         Zend Engine 2 problem
 Operating System: Windows
 PHP Version:      5.0.0RC1
 New Comment:

Well in fact it seams to be a cause of IIS server, implicit call of
destructor is done before the end of the script

something like that :
class Object
{
  public function __construct()
  {
      ...
      ...
      echo 'end __construct';
  }
public function __destruct()
  {
      ...
      ...
      echo 'end __destruct';
  }
}
echo 'Construct';
$obj = new Object();
echo 'Done';

Will result :

Construct
end __construct
end __destruct
Done

I tried this script on IIS Server and Apache Server both with PHP
5.0.4

On Apache right result but not on IIS


Previous Comments:
------------------------------------------------------------------------

[2004-03-31 11:59:25] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2004-03-25 12:29:14] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Can't reproduce; works just fine.

------------------------------------------------------------------------

[2004-03-25 12:20:28] eyglys at yahoo dot com dot br

Description:
------------
Destructor method is actived two times

Reproduce code:
---------------
/* source code */
<?
class t {

        function __construct() {
                echo "constructor\n";
        }

        function __destruct() {
                echo "destructor\n";
        }
}

$p = new t();
?>

Expected result:
----------------
/* the output expected is */

constructor
destructor

Actual result:
--------------
/* the result output */

constructor
destructor
destructor


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=27698&edit=1

Reply via email to