============================================================
a
object(A)#1 (4) {
["public"]=>
NULL
["private":"A":private]=>
NULL
["protected":protected]=>
NULL
["storage":"ArrayObject":private]=>
array(3) {
["public"]=>
string(4) "test"
["private"]=>
string(4) "test"
["protected"]=>
string(4) "test"
}
}
NULL
string(4) "test"
string(4) "test"
============================================================
============================================================
b
object(B)#2 (4) {
["public"]=>
NULL
["private":"B":private]=>
NULL
["protected":protected]=>
NULL
["storage":"ArrayObject":private]=>
array(0) {
}
}
NULL
Fatal error: Cannot access private property B::$private in /in/OtprA on line 48
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
============================================================
a
object(A)#1 (3) {
["public"]=>
string(4) "test"
["private"]=>
string(4) "test"
["protected"]=>
string(4) "test"
}
NULL
string(4) "test"
string(4) "test"
============================================================
============================================================
b
object(B)#2 (0) {
}
NULL
Fatal error: Cannot access private property B::$private in /in/OtprA on line 48
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Undefined class constant 'ARRAY_AS_PROPS' in /in/OtprA on line 10
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/OtprA on line 4
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/OtprA on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/OtprA on line 4
Process exited with code 255.