Skip to content

Improve proc_open() configuration #6

@mikehaertl

Description

@mikehaertl

Issue mikehaertl/phpwkhtmltopdf#78 describes a problem that could be fixed with a different pipe configuration, as found here:

http://php.net/manual/en/function.proc-open.php#97012.

I've adopted this in release 1.0.5:

1 => array('pipe', 'w'), // stdout
2 => array('pipe', 'a') // stderr

But this caused new problems as now error capturing seemed to be broken as reported in issue mikehaertl/phpwkhtmltopdf#111.

So the change was undone in 1.0.6:

1 => array('pipe', 'w'), // stdout
2 => array('pipe', 'w') // stderr

A workaround would be, to use one or the other, depending on the OS. But so far I have no information from mikehaertl/phpwkhtmltopdf#78 which OS is really affected. Windows was only my (unconfirmed) assumption.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions