/** * This sets the mode in which onShutdown is handled, and may need * to be called if the shutdown processing doesn't work. * There are 2 options: * - "sake" (default) Sub-processes are run using exec, with framework/sake * being called to run the process. This requires * that php is on the path, and is the same php * interpreter as apache is using. (e.g. on MacOS X * the supplied php may be compiled differently that * under MAMP.) * - "phppath" Sub-processes are run using an explicitly identified * PHP binary, supplied as the arg. * @param String $option The option to use * @param String $arg The optional argument to that option. */ static function set_onshutdown_option($option, $arg = null) { self::$onshutdown_option = $option; self::$onshutdown_arg = $arg; if ($option == "phppath" && !$arg) { throw new Exception("set_onshutdown_option: Path is required for phppath option"); } }