|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-23 20:15 UTC] tony2001@php.net
[2005-06-23 20:29 UTC] kermodebear at kermodebear dot org
[2005-06-23 20:50 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
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: