locutusjs / locutus

Bringing stdlibs of other programming languages to JavaScript for educational purposes

Home Page:https://locutus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown / Unhandled data type(s): o

Drewsov opened this issue · comments

Try this from Wordpress
O:8:"stdClass":3:{s:14:"trusted_header";s:11:"REMOTE_ADDR";s:8:"segments";i:1;s:7:"reverse";b:0;}

At least should be return stdClass...
{"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false}

I will look into adding support for stdClass

Just published a pull request that adds support for the "O" type for stdClass #403

PR merged. Closing the ticket. Please feel free to re-open or file a new in case the function doesn't work for you.