fixed bug to php 5.3.8 "syntax error, unexpected T_OBJECT_OPERATOR" and update demo