#18085 [Opn->Csd]: Segmentation Fault on eval("\$this->variable");

From: Date: Fri, 18 Oct 2002 02:59:40 +0000
Subject: #18085 [Opn->Csd]: Segmentation Fault on eval("\$this->variable");
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22713@lists.php.net to get a copy of this message
ID: 18085 Updated by: iliaa@php.net Reported By: Sky@quit-clan.de -Status: Open +Status: Closed Bug Type: Zend Engine 2 problem Operating System: SuSE Linux 8.0 PHP Version: 4.0CVS-2002-07-01 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-07-24 11:01:39] paulo@isnet.com.br 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. ------------------------------------------------------------------------ [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 (#22713) next »