private function isLegacyPipe($resource)
    {
        if (\PHP_VERSION_ID < 50428 || (\PHP_VERSION_ID >= 50500 && \PHP_VERSION_ID < 50512)) {
            $meta = \stream_get_meta_data($resource);

            if (isset($meta['stream_type']) && $meta['stream_type'] === 'STDIO') {
                return true;
            }
        }
        return false;
    }
private function isLegacyPipe($resource)
    {
        if (\PHP_VERSION_ID < 50428 || (\PHP_VERSION_ID >= 50500 && \PHP_VERSION_ID < 50512)) {
            $meta = \stream_get_meta_data($resource);

            if (isset($meta['stream_type']) && $meta['stream_type'] === 'STDIO') {
                return true;
            }
        }
        return false;
    }
private function isLegacyPipe ( $ resource ) { if ( \ PHP_VERSION_ID < 50428 || ( \ PHP_VERSION_ID >= 50500 && \ PHP_VERSION_ID < 50512 ) ) { $ meta = \ stream_get_meta_data ( $ resource ) ; if ( isset ( $ meta [ 'stream_type' ] ) && $ meta [ 'stream_type' ] === 'STDIO' ) { return true ; } } return false ; }
Returns whether this is a pipe resource in a legacy environment

This works around a legacy PHP bug (#61019) that was fixed in PHP 5.4.28+
and PHP 5.5.12+ and newer.

@param resource $resource
@return bool
@link https://github.com/reactphp/child-process/issues/40

@codeCoverageIgnore
Returns whether this is a pipe resource in a legacy environment