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