Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casting arrays to objects unsupported #20

Open
binki opened this issue Dec 11, 2012 · 0 comments
Open

casting arrays to objects unsupported #20

binki opened this issue Dec 11, 2012 · 0 comments

Comments

@binki
Copy link

binki commented Dec 11, 2012

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”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant