標題: <?php $this::$a ?> is correct and can be executed correctly but Dreamweaver CC says it has syntax error! 內容: Steps to Reproduce Bug: 1. Create a PHP file 2. Write the following codes: <?php class A { static $b = 10; function a() { echo $this::$b; } }
Results: DW says " echo $this::$b;" has syntax errors. However, if you change it to " echo $this->$b;", PHP will report errors instead!
Expected Results: DW shouldn't say " echo $this::$b;" is an error.
|