php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29968 __destruct and xdebug
Submitted: 2004-09-03 12:05 UTC Modified: 2004-09-06 08:18 UTC
From: grnick at mail dot ru Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5CVS-2004-09-03 (dev) OS: Linux
Private report: No CVE-ID: None
 [2004-09-03 12:05 UTC] grnick at mail dot ru
Description:
------------
Configure Command: './configure' '--with-pgsql' '--with-mysql'
'--with-apxs' '--with-apxs=/usr/local/apache/bin/apxs'
'--enable-sysvsem' '--enable-sockets'

Apache/1.3.24
Loaded Modules mod_php5, mod_setenvif, mod_so, mod_auth, mod_access,
mod_rewrite, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis,
mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status,
mod_negotiation, mod_mime, mod_log_config, mod_env, http_core

Reproduce code:
---------------
<?
class C1 {}

class C2 {

	public function __construct() {
		$v = new C1();
		$v->Test();
	}
	public function __destruct() {}
}

$obj = new C2();
?>


Expected result:
----------------
Fatal error: Call to undefined method C1::Test() in test.php on line 8

Actual result:
--------------
Apache error_log
[notice] child pid 11402 exit signal Segmentation fault (11)

And without destructor that code works right.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-03 17:14 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Tested and not reproduced. Please, provide a backtrace.
 [2004-09-06 07:57 UTC] grnick at mail dot ru
I'm sorry. The problem is not in PHP. This bug is caused by xdebug 1.3.1. It eliminates by upgrading xdebug to 1.3.2. Of course whithout xdebug PHP works correct.
 [2004-09-06 08:18 UTC] tony2001@php.net
Not a PHP bug -> bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 04:01:32 2024 UTC