Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 33... Zeile 33...
33
    public function initialize(): void
33
    public function initialize(): void
34
    {
34
    {
35
        $descriptorSpec = [
35
        $descriptorSpec = [
36
            0 => ['pipe', 'r'],
36
            0 => ['pipe', 'r'],
37
            1 => ['pipe', 'w'],
37
            1 => ['pipe', 'w'],
38
            2 => ['pipe', 'w'],
38
            2 => ['pipe', '\\' === \DIRECTORY_SEPARATOR ? 'a' : 'w'],
39
        ];
39
        ];
40
        $pipes = [];
40
        $pipes = [];
41
        $this->stream = proc_open($this->command, $descriptorSpec, $pipes);
41
        $this->stream = proc_open($this->command, $descriptorSpec, $pipes);
42
        stream_set_blocking($pipes[2], false);
42
        stream_set_blocking($pipes[2], false);
43
        if ($err = stream_get_contents($pipes[2])) {
43
        if ($err = stream_get_contents($pipes[2])) {