ID: 18085 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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
