derickr / vld

BSD 2-Clause "Simplified" License
464 stars 87 forks source link

the op of new instruction is <undef> #58

Closed jimmyleeeeee closed 4 years ago

jimmyleeeeee commented 4 years ago

When there is code using "new self" or "new static" looks like the code below:

class CTest {
    public $name = 4;

    public static function getName() {

        $writer = new static;

        return $writer->name;

    }
}

when use vld to print the opcode. The operands of new instruction is "undef".

For "new self; ", the op is null.

Is there anyway to show the class name?