Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #79193: Incorrect type inference for self::$field =& $field --EXTENSIONS-- op..

Decoded Output download

--TEST--
Bug #79193: Incorrect type inference for self::$field =& $field
--EXTENSIONS--
opcache
--FILE--
<?php

class Test {
    public static $foo;
    public static function method($bar) {
        Test::$foo =& $bar;
        var_dump(is_int($bar));
    }
}

Test::method(1);

?>
--EXPECT--
bool(true)

Did this file decode correctly?

Original Code

--TEST--
Bug #79193: Incorrect type inference for self::$field =& $field
--EXTENSIONS--
opcache
--FILE--
<?php

class Test {
    public static $foo;
    public static function method($bar) {
        Test::$foo =& $bar;
        var_dump(is_int($bar));
    }
}

Test::method(1);

?>
--EXPECT--
bool(true)

Function Calls

None

Variables

None

Stats

MD5 be0247ba4a38d3f887bead46e7796aed
Eval Count 0
Decode Time 157 ms