php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70478 **= does no longer work
Submitted: 2015-09-11 22:03 UTC Modified: -
From: derick@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.0RC2 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: derick@php.net
New email:
PHP Version: OS:

 

 [2015-09-11 22:03 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-11 22:56 UTC] bwoebi@php.net
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)
 [2015-09-11 22:56 UTC] bwoebi@php.net
-Status: Open +Status: Closed
 [2015-09-15 12:13 UTC] ab@php.net
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)
 [2016-07-20 11:36 UTC] davey@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC