RE: [PHP-DEV] Patch that corrects non blocked socket reading on WIN32

2001-01-16 Thread Christophe Thibault
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

[PHP-DEV] Patch that corrects non blocked socket reading on WIN32

2001-01-14 Thread Christophe Thibault
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