--TEST-- file upload greater than 2G --SKIPIF-- =8"); } if (disk_free_space(sys_get_temp_dir()) < 2300000000) { die("skip need more than 2.15G of free disk space for the uploaded file"); } if (!file_exists('/proc/meminfo')) { die('skip Cannot check free RAM from /proc/meminfo on this platform'); } $free_ram = 0; if ($f = fopen("/proc/meminfo","r")) { while (!feof($f)) { if (preg_match('/MemFree[^\d]*(\d+)/i', fgets($f), $m)) { $free_ram = max($free_ram, $m[1]/1024/1024); if ($free_ram > 3) { $enough_free_ram = true; } } } } if (empty($enough_free_ram)) { die(sprintf("skip need +3G free RAM, but only %01.2f available", $free_ram)); } if (getenv('CIRRUS_CI')) die('skip Fails on Cirrus'); if (getenv('SKIP_PERF_SENSITIVE')) { die("skip Test may be very slow if PHP is instrumented"); } ?> --CONFLICTS-- all --FILE-- Done --EXPECTF-- Test HTTP/1.1 200 OK Host: %s Date: %s Connection: close X-Powered-By: PHP/%s Content-type: text/html; charset=UTF-8 array(1) { ["file1"]=> array(6) { ["name"]=> string(9) "file1.txt" ["full_path"]=> string(9) "file1.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(%d) "%s" ["error"]=> int(0) ["size"]=> int(2150000000) } } Done