fix bug #67089 	Segmentation fault (TSRM)
fix warning
fix JSON POST handler in PHP-5.6+