modified: fixed a bug where stdClass was not correctly integrated into PHP 5