e76f3acf7c
We appear to be handling bare $this differently in contexts where it can actually do something, but it doesn't look like it should matter: at JIT time InitThisLoc turns into nothing in a non-method anyway. Static closures and non-static closures in non-methods with bare $this end up with a different state for FunctionScope::needsLocalThis, it was unclear how to fix that earlier in the frontend that so I'm just quieting the assertion here. Differential Revision: D952951
22 linhas
292 B
Plaintext
22 linhas
292 B
Plaintext
This is Normal
|
|
object(Normal)#1 (0) {
|
|
}
|
|
~Normal
|
|
This is Weird
|
|
%ANULL
|
|
~Weird
|
|
This is Weird2
|
|
object(Weird2)#1 (0) {
|
|
}
|
|
~Weird2
|
|
This is Weird3
|
|
object(Weird3)#1 (0) {
|
|
}
|
|
~Weird3
|
|
closure
|
|
%ANULL
|
|
static closure
|
|
%ANULL
|
|
About to fail:
|
|
HipHop Fatal error: Function name must be a string in %s on line 41
|