#45874 [Com]: socket_read does not work

From: Date: Fri, 22 Aug 2008 03:02:30 +0000
Subject: #45874 [Com]: socket_read does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128306@lists.php.net to get a copy of this message
ID: 45874 Comment by: roberto at spadim dot com dot br Reported By: roberto at spadim dot com dot br Status: Feedback Bug Type: Sockets related Operating System: linux PHP Version: 5.2.6 New Comment: the working is diferent here: --with-layout=PHP --with-ttf --enable-mailparse --enable-magic-quotes --enable-session --enable-sqlite-utf8 --enable-track-vars --enable-safe-mode --with-curl --with-mime-magic --with-freetype-dir=/usr --enable-exif --with-jpeg-dir=/usr --enable-dba --without-db2 --without-db3 --with-inifile --with-flatfile --with-gdbm --with-openssl --with-gettext --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-dom --with-dom-xslt --with-xsl --with-png-dir=/usr --with-zlib --enable-mbstring=all --enable-mbregex --enable-dbase --with-readline the other is differnt here: --with-layout=GNU --enable-inline-optimization --disable-debug --disable-rpath --disable-static --with-openssl=shared --with-zlib=shared --with-curl=shared --enable-dba=shared --without-db2 --without-db3 --with-db4=shared --with-gdbm=shared --enable-dbase=shared --enable-exif=shared --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 --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-sqlite=shared --with-snmp=shared --enable-sqlite-utf8=shared --with-tidy=shared --with-xsl=shared --enable-zip=shared --with-ttf=shared --enable-session=shared --with-pcre-regex=/usr --enable-json=shared --with-iconv=shared --with-xmlrpc=shared --with-pspell=shared --with-freetype-dir=shared,/usr :) sorry i just found and sent, the server is in production Previous Comments: ------------------------------------------------------------------------ [2008-08-21 20:52:41] jani@php.net 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. ------------------------------------------------------------------------ [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 (#128306) next »