[Fix] return value in write context with empty method for php 5.4
Merge branch '1.1' into 1.2
Merge branch '1.2'