<?php
class abc
{
public $a = 'A';
public function __debugInfo()
{
return array("\0*\0b"=>'B');
}
}
$a = new abc();
print_r($a->__debugInfo(array(), 456));
var_dump($a);
Array
(
[ * b] => B
)
object(abc)#1 (1) {
["a"]=>
string(1) "A"
}
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/N6Kbl on line 5
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/N6Kbl on line 5
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/N6Kbl on line 5
Process exited with code 255.