<?php
class test_static {
public static $static_mem = "before";
public static function test() {
static::$static_mem = "after";
}
}
print "before calling function test ".test_static::$static_mem."<br/>";
test_static::test();
print "after calling function test ".test_static::$static_mem."<br/>";
?>
然后点击发布,结果发布失败,查看日志有如下一条日志(appid已被修改):
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_VARIABLE in code/builder/work/appidyzhdsezfxd/0/index.php on line 5
Errors parsing code/builder/work/appidyzhdsezfxd/0/index.php