#45874 [Opn->Fbk]: socket_read does not work

From: Date: Thu, 21 Aug 2008 20:52:42 +0000
Subject: #45874 [Opn->Fbk]: socket_read does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128300@lists.php.net to get a copy of this message
ID: 45874 Updated by: jani@php.net Reported By: roberto at spadim dot com dot br -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: linux PHP Version: 5.2.6 New Comment: What exactly is the difference with the configure options? (no, I'm not going to go over line by line those..) Reduce the options to minimum amount which shows the error. Previous Comments: ------------------------------------------------------------------------ [2008-08-20 20:05:28] roberto at spadim dot com dot br linux: archlinux the source compile ok without error binary work ok without segmentation fault just socket dont' work ------------------------------------------------------------------------ [2008-08-20 20:04:29] roberto at spadim dot com dot br this don't work: phpconfig="--prefix=/usr \ --sysconfdir=/etc/php \ --with-layout=GNU \ --with-config-file-path=/etc/php \ --with-config-file-scan-dir=/etc/php/conf.d \ --enable-inline-optimization \ --disable-debug \ --disable-rpath \ --disable-static \ --enable-shared \ " phpextensions="--with-openssl=shared \ --with-zlib=shared \ --enable-bcmath=shared \ --with-bz2=shared \ --with-curl=shared \ --enable-dba=shared \ --without-db2 \ --without-db3 \ --with-db4=shared \ --with-gdbm=shared \ --enable-dbase=shared \ --enable-exif=shared \ --enable-ftp=shared \ --with-gd=shared \ --enable-gd-native-ttf \ --with-jpeg-dir=shared,/usr \ --with-png-dir=shared,/usr \ --with-gettext=shared \ --with-ldap=shared \ --with-mcrypt=shared \ --with-mysql=shared \ --with-mysql-sock=/tmp/mysql.sock \ --with-mysql=shared \ --with-mysqli=shared \ --with-ncurses=shared \ --enable-pdo=shared \ --with-pdo-mysql=shared \ --with-pdo-sqlite=shared \ --with-sqlite=shared \ --enable-shmop=shared \ --with-snmp=shared \ --enable-soap=shared \ --enable-sqlite-utf8=shared \ --enable-sysvmsg=shared \ --enable-sysvsem=shared \ --enable-sysvshm=shared \ --with-tidy=shared \ --with-xsl=shared \ --enable-zip=shared \ --enable-posix=shared \ --enable-sockets=shared \ --enable-xml \ --with-ttf=shared \ --enable-session=shared \ --with-regex=php \ --with-pcre-regex=/usr \ --enable-json=shared \ --with-iconv=shared \ --with-xmlrpc=shared \ --with-pspell=shared \ --with-freetype-dir=shared,/usr \ " ./configure ${phpconfig} \ --disable-cgi \ --with-readline \ --enable-pcntl \ --with-pear=/usr/share/pear \ ${phpextensions} ------------------------------------------------------------------------ [2008-08-20 20:03:12] roberto at spadim dot com dot br this work: phpconfig="--prefix=/usr \ --sysconfdir=/etc \ --with-layout=PHP \ --with-ttf \ --enable-mailparse \ --with-config-file-scan-dir=/etc \ --enable-bcmath=shared \ --enable-ftp=shared \ --enable-gd-native-ttf \ --enable-magic-quotes \ --enable-posix=shared \ --enable-session \ --enable-shared \ --enable-shmop=shared \ --enable-pdo=shared \ --enable-sqlite-utf8 \ --enable-sockets=shared \ --enable-xml \ --enable-sysvsem=shared \ --enable-sysvshm=shared \ --enable-sysvmsg=shared \ --enable-track-vars \ --enable-safe-mode \ --with-readline \ --with-bz2=shared \ --with-curl \ --with-mime-magic \ --with-freetype-dir=/usr \ --with-gd=shared \ --enable-exif \ --with-jpeg-dir=/usr \ --enable-dba \ --without-db2 \ --without-db3 \ --with-inifile \ --with-flatfile \ --with-gdbm \ --with-openssl \ --with-gettext \ --with-ldap=shared \ --with-mcrypt=shared,/usr \ --with-mysql-sock=/tmp/mysql.sock \ --with-pdo-mysql=shared,/usr \ --with-mysql=shared,/usr \ --with-sqlite=shared \ --with-pdo-sqlite=shared,/usr \ --with-pear=/usr/share/pear \ --with-dom \ --with-dom-xslt \ --with-xsl \ --with-png-dir=/usr \ --with-regex=php \ --with-zlib \ --enable-soap=shared \ --enable-mbstring=all \ --enable-mbregex \ --with-snmp=shared,/usr \ --enable-dbase \ --enable-pcntl" ./configure ${phpconfig} \ --disable-cgi \ --with-readline \ --enable-pcntl \ --with-pear=/usr/share/pear ------------------------------------------------------------------------ [2008-08-20 20:01:43] roberto at spadim dot com dot br Description: ------------ i can't read from socket (socket_read) with some ./configure options, but with other ./configure options the socket_Read work i will send the wrong one, and the right one Reproduce code: --------------- socket_read don't work with the first and work with the second Expected result: ---------------- work with first and second configurations ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45874&edit=1

« previous php.bugs (#128300) next »