Bugfix send file with curl on php 5.6.0