Fixed PHP-1105: long_as_object = 0 no effect.
Added more test cases.
Merged pull request #718
Merge branch 'v1.5'