[PHP] any way to dio_close(0) without opening it before?

2004-04-02 Thread Bernard Fouché
Hi. I want to close fd 0 1, like I would do in C under Linux to close a socket with a remote end. However php refuses that I simply do: dio_close(0); dio_close(1); How can I close these 2 fds? Thanks! Bernard

[PHP] php5rc1 + [x]inetd : how to really close stdin/stdout?

2004-04-01 Thread Bernard Fouché
Hi there. I'm using php5rc1 to write scripts launched by xinetd on a Linux Fedora system. My problem is to close stdin and stdout to really break the socket from the remote end to release a remote resource while I'm doing a long processing locally. It seems that opening php://std[in/out] is