--TEST-- file upload greater than 2G --SKIPIF-- =8"); } if ($f = fopen("/proc/meminfo","r")) { while (!feof($f)) { if (!strncmp($line = fgets($f), "MemFree", 7)) { if (substr($line,8)/1024/1024 > 3) { $enough_free_ram = true; } } } } if (empty($enough_free_ram)) { die("skip need +3G free RAM"); } if (getenv('TRAVIS')) { die("skip Fails intermittently on travis"); } ?> --FILE-- Done --EXPECTF-- Test HTTP/1.1 200 OK Host: %s Connection: close X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 array(1) { ["file1"]=> array(5) { ["name"]=> string(9) "file1.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(%d) "%s" ["error"]=> int(0) ["size"]=> int(2150000000) } } Done