Bug #70478 [Opn->Csd]: **= does no longer work

From: Date: Fri, 11 Sep 2015 22:56:12 +0000
Subject: Bug #70478 [Opn->Csd]: **= does no longer work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195966@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70478&edit=1 ID: 70478 Updated by: bwoebi@php.net Reported by: derick@php.net Summary: **= does no longer work -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem Operating System: * PHP Version: 7.0.0RC2 Block user comment: N Private report: N New Comment: Automatic comment on behalf of bobwei9@hotmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=b0174a14c05dfed2f8e33dae09339e684c842e0f Log: Fixed bug #70478 (**= does no longer work) Previous Comments: ------------------------------------------------------------------------ [2015-09-11 22:03:06] derick@php.net Description: ------------ As per https://3v4l.org/aULpq , in PHP 7 this no longer seems to work: <?php function test($a, $b) { $a **= $b; } class testClass { public $a; private $b; function __construct() { $this->a = 98; $this->b = 4; $this->a **= $this->b; } } test(7, 3); $a = new testClass; echo $a->a; ?> In PHP 5.6 (and HHVM), this correction produces: 92236816 whereas in PHP 7 it produces: Fatal error: Invalid opcode 167/8/1. in /in/aULpq on line 18 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70478&edit=1

« previous php.bugs (#195966) next »