Actually, it's not that dangerous as the redefinition of errno only occurs
in fsock.c and errno is only used in fsock.c for retrieving socket errors...
-c
-Original Message-
From: Andi Gutmans [mailto:[EMAIL PROTECTED]]
Sent: mardi 16 janvier 2001 09:48
To: Christophe Thibault; [EMAIL
I just came across a bug still present in the latest php 4 release. i have
the following script:
$g_ssock=fsockopen($server,$port,$errno,$errstr,30);
socket_set_blocking($g_ssock,0);
while(!feof($g_ssock))
echo fgets($g_ssock,4096);
if you uncomment the socket_set_blocking line it