Fatal error: Uncaught Error: Non-static method A::foo() cannot be called statically in /in/1ishL:27
Stack trace:
#0 {main}
thrown in /in/1ishL on line 27
Process exited with code 255.
Deprecated: Non-static method A::foo() should not be called statically in /in/1ishL on line 27
bool(false)
bool(true)
Deprecated: Non-static method A::bar() should not be called statically in /in/1ishL on line 21
Fatal error: Uncaught Error: Using $this when not in object context in /in/1ishL:14
Stack trace:
#0 /in/1ishL(21): A::bar()
#1 /in/1ishL(31): B->bb()
#2 {main}
thrown in /in/1ishL on line 14
Process exited with code 255.
Output for 7.3.32 - 7.3.33
bool(false)
bool(true)
Fatal error: Uncaught Error: Using $this when not in object context in /in/1ishL:14
Stack trace:
#0 /in/1ishL(21): A::bar()
#1 /in/1ishL(31): B->bb()
#2 {main}
thrown in /in/1ishL on line 14
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Deprecated: Non-static method A::foo() should not be called statically in /in/1ishL on line 27
bool(false)
bool(true)
Deprecated: Non-static method A::bar() should not be called statically in /in/1ishL on line 21
Notice: Undefined variable: this in /in/1ishL on line 14
NULL
object(A)#3 (0) {
}
Output for 5.6.0 - 5.6.28
Strict Standards: Non-static method A::foo() should not be called statically in /in/1ishL on line 27
bool(false)
bool(true)
Deprecated: Non-static method A::bar() should not be called statically, assuming $this from incompatible context in /in/1ishL on line 21
object(B)#2 (0) {
}
object(A)#3 (0) {
}
Strict Standards: Non-static method A::foo() should not be called statically in /in/1ishL on line 27
bool(false)
bool(true)
Strict Standards: Non-static method A::bar() should not be called statically, assuming $this from incompatible context in /in/1ishL on line 21
object(B)#2 (0) {
}
object(A)#3 (0) {
}
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.2
Strict Standards: Non-static method A::foo() should not be called statically in /in/1ishL on line 27
bool(false)
bool(true)
object(B)#2 (0) {
}
object(A)#3 (0) {
}