Re: [PHP] file descriptor problem with tcpclient

From: Bill Shupp (bill_at_merchbox.com)
Date: 11/18/03


Date: Mon, 17 Nov 2003 18:09:24 -0800
To: php-general@lists.php.net

On Nov 17, 2003, at 4:49 PM, Bill Shupp wrote:

> Hello,
>
> I'm trying to use the program execution functions (like exec, system,
> passthru, etc) with tcpclient (from Dan Bernstein's ucspi-tcp command
> line tools), but get this error in the apache log with all of them:
>
> tcpclient: fatal: unable to set up descriptor 7: file descriptor not
> open
>
> Any idea why this descriptor is not accessible? Here's what I'm
> running:
>
> Apache/1.3.28 (Darwin) PHP/4.3.2

Ok, I have discovered that this ONLY occurs when I have started a
session with session_start(). So, I'm assuming that session_start is
using file descriptor 7. Is there a way to control this?

Regards,

Bill Shupp