目前共有2篇帖子。 內容轉換:不轉換▼
 
點擊 回復
77 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)
 

本帖信息

點擊數:77 回複數:1
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2015-10-31 15:17
 
©2010-2024 Arslanbar Ver2.0
除非另有聲明,本站採用共享創意姓名標示-相同方式分享 3.0 Unported許可協議進行許可。