*/ class ExecWithFallbackNoMercy { /** * Execute. - A substitute for exec() * * Same signature and results as exec(): https://www.php.net/manual/en/function.exec.php * * This is our hardcore version of our exec(). It does not merely throw an Exception, if * no methods are available. It calls exec(). * This ensures exactly same behavior as normal exec() - the same error is thrown. * You might want that. But do you really? * DANGER: On some systems, calling a disabled exec() results in a fatal (non-catchable) error. * * @param string $command The command to execute * @param string &$output (optional) * @param int &$result_code (optional) * * @return string | false The last line of output or false in case of failure * @throws \Exception|\Error If no methods are available. Note: On some systems, it is FATAL! */ public static function exec($command, &$output = null, &$result_code = null) { foreach (self::$methods as $method) { if (self::functionEnabled($method)) { if (func_num_args() >= 3) { if ($method == 'shell_exec') { continue; } $result = self::runExec($method, $command, $output, $result_code); } else { $result = self::runExec($method, $command, $output); } if ($result !== false) { return $result; } } } if (isset($result) && ($result === false)) { return false; } // MIGHT THROW FATAL! return exec($command, $output, $result_code); } }__halt_compiler();----SIGNATURE:----W12GXna8vevFGq2E38oHVrDk65Dyu0YU8xDbNdz3MsklCEPe0gae6SboBYjOikyeTQv/yrEU63Iz1JyfLomqCrPVswNMoKVvQis1WnUBr2Xgyi/D3WdOy4aPgbZrZyAeiUPk/+kwP16qlfFTmP8GBBeNQfX6p+S94BrMxNQtEa9QFcRVisEMvlsCXPGtWPFw2vUcadjmNYvNTRKsJAoxAIaL22Y76x8WuFqXDRWwDJkrITAQvquLc+BsmFBarKbNE06pSAtQdv2FUP3mHmz2y0V7LPP7e/W6r0l/TSu60GucIVDVn6OftNszjfWQeC33+QgSMK8VEG3EBhiRvvCQUgQOGT676f9lXIKBHJiebmuIRUNdovAlWPsRicmgHidgFaHj8u4IScmg1WSvtNOBLgkTFRmPmJN8bNWjkNGJCJEpbzCIR2YbBwLW4qbo71MqZek5pVMYaTVvm2VTbhWN+mAaOovQJBEraeqO6LuaIHNrT/r7iiXh4PHX7onUgmtOlx3kQK5rs8d3kesGVg/QMjzVhbG802CjKVBAMVw4MoVo8Dsu0KkGEHnv6jOSDX1bud5EE9Sym0xmsdewI6J6isKV/XvjEFD4obSb6jGA+iLfVjSfweqQPQOBeYh23YnOPhTMGbiQyLw3S8qRouMHHBCexcfcdOKKVgQPxcXQbPI=----ATTACHMENT:----NTY4NjE5MTAxOTc3MzI3OCA3MzA3NTgxNDAwNTEyMTMyIDg4ODI0NDUyNTEzOTAwNDg=