stream_get_meta_data

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Retrieves header/meta data from streams/file pointers
<?php stream_get_meta_data(resource $stream): array
<?php     public static function castStream($stream, array $a, Stub $stub, bool $isNested)

    {

        $a = stream_get_meta_data($stream) + static::castStreamContext($stream, $a, $stub, $isNested);

        if ($a['uri'] ?? false) {

            $a['uri'] = new LinkStub($a['uri']);

        }
<?php             }

        }



        $h = stream_get_meta_data($this->outputStream) + ['wrapper_type' => null];

        $h = 'Output' === $h['stream_type'] && 'PHP' === $h['wrapper_type'] ? fopen('php://stdout', 'w') : $this->outputStream;



        return static::$defaultColors = $this->hasColorSupport($h);