There are currently 2 posts.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
905 1
我提交了一個DW CC 2015的bug
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 10/31/15 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.
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 2 Posted at: 10/31/15 15:17
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 905 Replies: 1
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 10/31/15 15:17
Announcements