Bug #18085 Updated: Segmentation Fault on eval("\$this->variable");

From: Date: Wed, 24 Jul 2002 15:01:40 +0000
Subject: Bug #18085 Updated: Segmentation Fault on eval("\$this->variable");
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15051@lists.php.net to get a copy of this message
ID: 18085 Updated by: paulo@isnet.com.br Reported By: Sky@quit-clan.de Status: Open Bug Type: Zend Engine 2 problem Operating System: SuSE Linux 8.0 PHP Version: 4.0CVS-2002-07-01 New Comment: It also happens with properties or any reference to $this inside an eval. If we do: $self=$this; eval('$self->test();'); It works fine. I'm using the Windows version of the same PHP release above. Previous Comments: ------------------------------------------------------------------------ [2002-07-01 05:47:23] Sky@quit-clan.de The following PHP code, executed as commandline script with php-4.3.0-dev-zend2-alpha2 gives a segmentation fault. php-4.2.1 doesnt have this problem. #!/usr/sbin/php -f <?php class mytest { function test() { echo "Hello\n"; } function killmyself() { eval("\$this->test();"); } } $iwill = new mytest; $iwill->killmyself(); echo "Sucessful.\n"; ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18085&edit=1

« previous php.bugs (#15051) next »