php.js icon indicating copy to clipboard operation
php.js copied to clipboard

casting arrays to objects unsupported

Open binki opened this issue 11 years ago • 0 comments

php > $b = (object)array('name' => 'Pooh', 'age' => 24);
php > echo $b->name . PHP_EOL;
Pooh
php > print_r($b);
stdClass Object
(   
    [name] => Pooh
    [age] => 24
)

In php.js, I get “Parse error: this.Node_Expr_Cast_Object is not a function in /console.htm on line undefined”.

binki avatar Dec 11 '12 06:12 binki