fileno(2) - phpMan

fileno (3)           - check and reset stream status
fileno (3p)          - map a stream pointer to a file descriptor
fileno_unlocked (3)  - nonlocking stdio functions