ID: 33454 Comment by: kermodebear at kermodebear dot org Reported By: carlo dot razzeto at mtginfo dot com Status: Feedback Bug Type: Class/Object related Operating System: (Red Hat Linux 3.2.3-47) PHP Version: 5.0.4 New Comment:
I tried the latest CVS release and this seems to have fixed the issue. Previous Comments: ------------------------------------------------------------------------ [2005-06-23 20:15:11] [EMAIL PROTECTED] 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