jphp-group / jphp

JPHP - an implementation of PHP on Java VM
http://jphp.develnext.org
Apache License 2.0
1.71k stars 160 forks source link

Failure using static class attribute as class name #405

Open danog opened 4 years ago

danog commented 4 years ago

Code:

<?php

class a { public static $fun = 'a'; }

$a = new a::$fun();

Result:

[daniil@daniil-arch jav]$ jppm start
-> linux
-> app:run 
-> install 

Fatal error: Uncaught ParseError: Syntax error, unexpected ')' in res://4.php on line 6, position 17
Stack Trace:
#0 {main}
  thrown in res://4.php on line 6