Skip to content

Instantly share code, notes, and snippets.

@Majkl578
Created October 24, 2014 15:54
Show Gist options
  • Save Majkl578/eb69a620b00117bde91e to your computer and use it in GitHub Desktop.
Save Majkl578/eb69a620b00117bde91e to your computer and use it in GitHub Desktop.
CURLFile fix for HHVM w/o 83a84147866fc73db7d2e0299f69c94738150436
<?php
class FixedCurlFile extends CurlFile
{
public function __construct($filename, $mimetype = '', $postname = '')
{
parent::__construct($filename, $mimetype, $postname ?: $filename;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment