ppelisset/fileno

Get a file descriptor from a stream

Maintainers

Package info

github.com/ppelisset/php-fileno

Language:C

pkg:composer/ppelisset/fileno

Statistics

Installs: 643

Dependents: 2

Suggesters: 0

Stars: 6

Open Issues: 0

v0.2.0 2022-07-10 17:52 UTC

This package is auto-updated.

Last update: 2026-02-27 14:04:22 UTC


README

This package append function fileno to retrieve the file descriptor of a stream.

Installation

php-fileno require PHP8 and php-ffi enabled. To install this package, use composer to require package ppelisset/fileno.

Documentation

fileno - Get a file descriptor from a stream

fileno(resource $stream): ?int

Return the file descriptor of the stream or null if stream is not a stream with a file descriptor (not a stream, network stream...)