目前共有2篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
209 1
我提交了一個DW CC 2015的bug
一派掌门 二十级
1楼 发表于:2015-10-31 15:16
標題:
<?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.
一派掌门 二十级
2楼 发表于:2015-10-31 15:17
 

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:209 回复数:1
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2015-10-31 15:17
 
©2010-2025 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。