Skip to content

Conversation

jasir
Copy link

@jasir jasir commented Feb 7, 2013

Due to php bug 51800, https://bugs.php.net/bug.php?id=51800, output from
process must not use pipes. Both STDOUT and STDERR must be redirected
to file.

Due to php bug 51800, https://bugs.php.net/bug.php?id=51800, output from
process must not use pipes. STDIN, STDOUT and STDERR must be redirected
to file.
hakre added a commit to hakre/Process that referenced this pull request Mar 14, 2013
- As long as PHP does not populate $_ENV it can not be inherited.
- A working directory that does not exist does not work.
- Descriptors formatting.
- stream_set_blocking() takes integer not boolean as second parameter.
- Streams on Windows that didn't set to non-blocking should only fread()
  when there are bytes to read and only fclosed() while being eof. Fixes
  PHP Bug #51800. See Issue symfony#3.
hakre added a commit to hakre/Process that referenced this pull request Mar 14, 2013
…nel (2.0 Backport)

- A working directory that does not exist does not work.
- Descriptors formatting.
- stream_set_blocking() takes integer not boolean as second parameter.
- Streams on Windows that didn't set to non-blocking should only fread()
  when there are bytes to read and only fclosed() while being eof. Fixes
  PHP Bug #51800. See Issue symfony#3.
@hakre
Copy link

hakre commented Mar 14, 2013

@jasir: I ran into the same problem and I have found a way on how to do it with blocked pipes under windows.

The change is here: hakre@480d4b6#L0R332 - it works by only reading from the blocking streams the bytes that are available (and only if). Same for fclose, only if the stream is eof, then fclose will be called (and not feof()).

@fabpot
Copy link
Member

fabpot commented Apr 21, 2013

Can you close this PR and open a new one on symfony/symfony? This repository is a read-only one. Thanks.

@fabpot fabpot closed this Sep 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants