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     protected function tempFilePath()

    {

        return stream_get_meta_data($this->tempFile)['uri'];

    }

}
<?php     protected function dump($value)

    {

        $outputFile = stream_get_meta_data(tmpfile())['uri'];



        $dumper = new HtmlDumper(

            '/my-work-directory',
<?php     {

        $this->fails(

            File::image()->dimensions(Rule::dimensions()->width(100)->height(100)),

            new UploadedFileWithCustomImageSizeMethod(stream_get_meta_data($tmpFile = tmpfile())['uri'], 'foo.png'),

            ['validation.dimensions'],

        );
<?php         $this->passes(

            File::image()->dimensions(Rule::dimensions()->width(200)->height(200)),

            new UploadedFileWithCustomImageSizeMethod(stream_get_meta_data($tmpFile = tmpfile())['uri'], 'foo.png'),

        );

    }