#33454 [Fbk->Csd]: Semgantation fault performing eval in __destruct()

From: Date: Thu, 23 Jun 2005 18:50:21 +0000
Subject: #33454 [Fbk->Csd]: Semgantation fault performing eval in __destruct()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80921@lists.php.net to get a copy of this message
ID: 33454 Updated by: tony2001@php.net Reported By: carlo dot razzeto at mtginfo dot com -Status: Feedback +Status: Closed Bug Type: Class/Object related Operating System: (Red Hat Linux 3.2.3-47) PHP Version: 5.0.4 New Comment: Works fine -> closed. Previous Comments: ------------------------------------------------------------------------ [2005-06-23 20:29:59] kermodebear at kermodebear dot org I tried the latest CVS release and this seems to have fixed the issue. ------------------------------------------------------------------------ [2005-06-23 20:15:11] tony2001@php.net Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2005-06-23 17:08:29] carlo dot razzeto at mtginfo dot com Description: ------------ The latest release of PHP5 will segmantation fault when performing the following an eval which accesses a member variable of the class, setting another variable to it's value. Reproduce code: --------------- class test { var $test = true; function __construct() { //Constructor } function __destruct() { $variable = 'test'; $test = true; eval( '$check = $this->'.$variable.';' ); if( $check ) { echo "Hello\n"; } } } $o_test = new test(); Expected result: ---------------- Hello prompt: Actual result: -------------- Segmantation Fault: prompt: ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33454&edit=1

« previous php.bugs (#80921) next »