facebook / facebook/hhvm

stream_get_meta_data does not set "mode" for pipe streams

Open
#7,089 0 comments 0 reactions 0 assignees View on GitHub
php5 incompatibility php7 incompatibility probably easy
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

When fetching the mode using `stream_get_meta_data` I get an empty string instead of the mode used to open the stream if a stream is opened using `popen`.

PHP does return the mode used with `popen` (tested with PHP 7.0.4).
### HHVM Version

Tested with hhvm 3.13.1.

3v4l.org reports the same result with hhvm versions 3.9.1 through 3.12.0.
### Code to reproduce problem

``` php

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.