Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Process][FR] Add an option to redirect any output to /dev/null #9007

Copy link
Copy link
@romainneutron

Description

@romainneutron
Issue body actions

As well as it could be nice to flush the output, discarding it could be nice in term of memory consumption for long process where output is not needed.

In terms of proc_open descriptors, it consists in :

$nullfile = defined('PHP_WINDOWS_VERSION_BUILD') ? 'NUL' : '/dev/null';
$descriptors = array(
    1 => array("file", $nullfile, "a+"),
    2 => array("file", $nullfile, "a+"),
);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.