public function coerceWritable($wait = 1)
    {
        try {
            $this->assertWritable();
        }
        catch (UnexpectedValueException $e) {
            if (!function_exists('pcntl_exec')) {
                $this->log('<error>' . $e->getMessage() . '</error>');
                return;
            }

            $this->log('<info>' . $e->getMessage() . ', trying to re-spawn with correct config</info>');
            if ($wait) {
                sleep($wait);
            }

            $args = array_merge(array('php', '-d phar.readonly=off'), $_SERVER['argv']);
            if (pcntl_exec('/usr/bin/env', $args) === false) {
                $this->log('<error>Unable to switch into new configuration</error>');
                return;
            }
        }
    }
public function coerceWritable($wait = 1)
    {
        try {
            $this->assertWritable();
        }
        catch (UnexpectedValueException $e) {
            if (!function_exists('pcntl_exec')) {
                $this->log('<error>' . $e->getMessage() . '</error>');
                return;
            }

            $this->log('<info>' . $e->getMessage() . ', trying to re-spawn with correct config</info>');
            if ($wait) {
                sleep($wait);
            }

            $args = array_merge(array('php', '-d phar.readonly=off'), $_SERVER['argv']);
            if (pcntl_exec('/usr/bin/env', $args) === false) {
                $this->log('<error>Unable to switch into new configuration</error>');
                return;
            }
        }
    }
public function coerceWritable ( $ wait = 1 ) { try { $ this -> assertWritable ( ) ; } catch ( UnexpectedValueException $ e ) { if ( ! function_exists ( 'pcntl_exec' ) ) { $ this -> log ( '<error>' . $ e -> getMessage ( ) . '</error>' ) ; return ; } $ this -> log ( '<info>' . $ e -> getMessage ( ) . ', trying to re-spawn with correct config</info>' ) ; if ( $ wait ) { sleep ( $ wait ) ; } $ args = array_merge ( array ( 'php' , '-d phar.readonly=off' ) , $ _SERVER [ 'argv' ] ) ; if ( pcntl_exec ( '/usr/bin/env' , $ args ) === false ) { $ this -> log ( '<error>Unable to switch into new configuration</error>' ) ; return ; } } }
ensure writing phar files is enabled or respawn with PHP setting which allows writing

@param int $wait
@return void
@uses assertWritable()
ensure writing phar files is enabled or respawn with PHP setting which allows writing