a1802db1d2
PHP added this in 5.4 so that you can say your closure shouldn't capture ##$this##. https://wiki.php.net/rfc/closures Should we add it? Many of their unit tests use it. Instead of putting a boolean somewhere I used the same attr framework and set the static bit there. Thoughts? It only needs one change in the ##FPushFunc##.
11 linhas
327 B
Plaintext
11 linhas
327 B
Plaintext
object(A)#1 (1) {
|
|
["c":"A":private]=>
|
|
int(1)
|
|
}
|
|
HipHop Notice: Undefined variable: this in hphp/test/vm/closure_static.php on line 13
|
|
NULL
|
|
HipHop Notice: Undefined variable: this in hphp/test/vm/closure_static.php on line 20
|
|
NULL
|
|
HipHop Notice: Undefined variable: this in hphp/test/vm/closure_static.php on line 25
|
|
NULL
|