definition))); if (strlen($data) < self::MAX_ENV_SIZE) { EnvHelper::set(self::ENV_VAR, $data); } else { $tempFile = tempnam(sys_get_temp_dir(), 'composer-compile-'); file_put_contents($tempFile, json_encode($task->definition)); EnvHelper::set(self::ENV_VAR, '@' . $tempFile); } } /** * Import the task definition from an environment variable. */ public static function import() { $raw = getenv(self::ENV_VAR); if ($raw === false || $raw === '') { fprintf(STDERR, "WARNING: Failed to read compilation-task from %s. Please use \"composer compile\".\n", self::ENV_VAR); $GLOBALS[self::GLOBAL_VAR] = []; return; } if ($raw[0] === '@') { $file = substr($raw, 1); $GLOBALS[self::GLOBAL_VAR] = json_decode(file_get_contents($file), 1); } else { $GLOBALS[self::GLOBAL_VAR] = json_decode(gzdecode(base64_decode($raw)), 1); } } /** * After executing a subtask, cleanup any variables/files that we created. */ public static function cleanup() { $raw = getenv(self::ENV_VAR); if ($raw[0] === '@') { $file = substr($raw, 1); unlink($file); } EnvHelper::remove(self::ENV_VAR); } /** * @return string * PHP code to setup a global variable with the active task. */ public static function createImportStatement() { return sprintf('%s::import();', self::CLASS); } } __halt_compiler();----SIGNATURE:----APdAUt2ZDdLYLbzKCwe7UTtojDv9t7j2w8U0nffbK/FTHTM1MELv6cU21NSN6wFfuII83bcgcu/YftsaftZJGOLGA0gJm7uLyTi5p/isX56VlHt5zn+yc7I7Of5n789g560DN90VuLTptMqP3t8/aSA2rP+Cvn551duMh/ei0PkK4Vh51QswUl5IplmieSRQRmQhg+UAjrpCe7h+HEmYlvm0djWuaaC2d/tFKD+41T9e+kDC9NUhxbdm3Kg3OtxMe8mgrXP7y6/ZrMeBFVXDwjXr0O0Gi2OpEw4nM/RrWOG4yc9/P1yYSLLsgKXCARhNsBnulAs8AaQ8adloTv0CJackTuBWuhBQEYoieVWGH111E7vbDjc6iI/nhkoj5/ZUZKOdIatOjxeosN5RVsFbC2NDYt8Jdhux7yq3yiGcc66wVBXl/GRrlPvyGzZT7XO8l0Z51/EeInpBBmjCKlx4uca4Bzzu6GX6xtxsex0ssdTGo8B5PSq4CUBmTi1yuyAwcNzsJ4RdduZSsFC1/tgSn9qtLTjAUdyB2fVpF9upLp93Q6O0TvqZHdbSg5auopyyGrgjxq6NdfHIhsSTo2qMAqdh6scszD5AU8DAaQCSz2uvuENuPEbLtS6wse8097XmCWAobTfAlITEU6eXqaKPcWiLQ/sJz+sQ4hB0Lp1Uz40=----ATTACHMENT:----Nzc0MzI3MzE1ODQyNjA5OSA1NzE5MzI4MzU1ODU2NTc4IDI0Njg3MjgyNDUzNDQ1MA==