#33454 [Opn->Fbk]: Semgantation fault performing eval in __destruct()
| From: | tony2001@php.net | Date: | Thu, 23 Jun 2005 18:15:15 +0000 |
| Subject: | #33454 [Opn->Fbk]: Semgantation fault performing eval in __destruct() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80920@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: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: (Red Hat Linux 3.2.3-47)
PHP Version: 5.0.4
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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