/** * @override * @inheritDoc */ public function clearEnvironmentVariable($name) { if (strpos($name, 'INI_') === 0) { $normalized = str_replace('INI_', '', $name); $normalized = strtolower($normalized); $this->invoker->call('ini_restore', [$normalized]); } parent::clearEnvironmentVariable($name); }
/** * @override * @inheritDoc */ public function registerTerminationHandler(callable $handler) { $this->invoker->call('pcntl_signal', [self::SIGTERM, $handler]); }