#27698 [Opn->Fbk]: class destructor

From: Date: Thu, 25 Mar 2004 17:29:15 +0000
Subject: #27698 [Opn->Fbk]: class destructor
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56832@lists.php.net to get a copy of this message
ID: 27698 Updated by: derick@php.net Reported By: eyglys at yahoo dot com dot br -Status: Open +Status: Feedback Bug Type: Zend Engine 2 problem Operating System: Windows PHP Version: 5.0.0RC1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#56832) next »