|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33925 __construct() cause __destruct() call
Submitted: 2005-07-29 21:56 UTC Modified: 2005-08-01 09:47 UTC
From: deadman_great at mail dot ru Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.0.4 OS: RH Redora, core 2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
45 + 16 = ?
Subscribe to this entry?

 [2005-07-29 21:56 UTC] deadman_great at mail dot ru
Destructor called after constructor.

My configure string:

./configure --prefix=/usr/local --with-apache2=../httpd-2.0.53 --with-apxs2=/usr/local/apache2/bin/apxs --with-mod_charset --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-freetype-dir=/usr/local --with-zlib --enable-memory-limit --enable-exif --with-ttf --enable-gd-native-ttf --with-openssl=/usr/local --with-iconv --with-curl=/usr/local --enable-ftp --enable-sockets --enable-maintainer-zts

Reproduce code:

class Engine
	function __construct ()
		echo '[CONSTRUCTOR]';
	function __destruct ()
		echo '[DESTRUCTOR]';

echo '[BEFORE]';
$egn = new Engine();
echo '[AFTER]';


Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-29 22:01 UTC] deadman_great at mail dot ru
Sorry. Bug magically disappear.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jun 03 21:03:40 2023 UTC