#40566 [Opn->Bgs]: Fgets screws up php on a nonblocked socket

From: Date: Wed, 21 Feb 2007 00:05:28 +0000
Subject: #40566 [Opn->Bgs]: Fgets screws up php on a nonblocked socket
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109226@lists.php.net to get a copy of this message
ID: 40566 Updated by: tony2001@php.net Reported By: myself at ligesh dot com -Status: Open +Status: Bogus Bug Type: Sockets related Operating System: Linux PHP Version: 5.2.1 New Comment: Please reopen the report when/if you have more information as to how to replicate it. Thanks. Previous Comments: ------------------------------------------------------------------------ [2007-02-20 23:55:56] myself at ligesh dot com OK, i guess, it is one of those truly magical phenomena that one encounters once in a while. I will consult the harry potter books and reply back. I rewrote the software using socket_select with a timeout rather than non block, it has become irrelevant as far as i am concerned. But if possible just see if someone can replicate the problem. Thanks. ------------------------------------------------------------------------ [2007-02-20 22:00:58] tony2001@php.net As I have already said it works perfectly fine here. With any options I still see lots of "Get something". ------------------------------------------------------------------------ [2007-02-20 21:36:32] myself at ligesh dot com Hello, It will take me more than a day to compile different versions of php and test it, since i have to test many permustions of compile time options and each compile will take 1 to 2 hours. in your case, you can just use the compile flags i have provided and see if it is triggering the bug. This is a critical error, and i am sure a lot of people's php is silently failing. ------------------------------------------------------------------------ [2007-02-20 21:32:03] tony2001@php.net Please reduce this list of options to the minimum required to replicate the problem. ------------------------------------------------------------------------ [2007-02-20 21:27:12] myself at ligesh dot com Yeah, That's the correct behaviour. Below are my compile time options. Please note that php-5.2.0 compiled with the same options works fine. ------------------- sh ./configure --prefix=/usr/local/ext/php --with-config-file-path=/usr/local/ext/php/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-cgi --enable-inline-optimization --with-db4=/usr --enable-posix --with-gettext --with-gmp --with-iconv --with-sqlite --with-openssl --with-regex=system --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-pcre-regex --with-zlib --enable-simplexml --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --without-oci8 --with-kerberos --with-mysql=shared,/usr --with-pgsql=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-dbx --enable-dio --enable-mcal --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-curl=/usr --enable-pcntl make EXTRA_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40566 -- Edit this bug report at http://bugs.php.net/?id=40566&edit=1

« previous php.bugs (#109226) next »