#45874 [Com]: socket_read odn't work

[email protected] ("roberto at spadim dot com dot br")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               45874
 Comment by:       roberto at spadim dot com dot br
 Reported By:      roberto at spadim dot com dot br
 Status:           Open
 Bug Type:         Sockets related
 Operating System: linux
 PHP Version:      5.2.6
 New Comment:

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}


Previous Comments:
------------------------------------------------------------------------

[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.