added php5.5 support for sync upload