#45874 [Com]: socket_read does not work
| From: | roberto at spadim dot com dot br | Date: | Fri, 22 Aug 2008 03:07:04 +0000 |
| Subject: | #45874 [Com]: socket_read does not work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128307@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:
i had a problem like this last year, the working ./configure script
worked for a old server, that's because i could change and get the php
socket working again, i readed (i don't remember where) that openssl was
causing some problems with socket, since i don't use openssl i set this
always on
i don't know if this is a problem, but maybe... the
--enable-inline-optimization, the --with-layout=GNU, --disable-debug ,
--disable-rpath, --disable-static, should be a problem too, i didn't
tested but i think that's where we should start testing,
i don't have (yet) another server to test this configuration options, i
will find a new server and test it maybe next month
thanks
Previous Comments:
------------------------------------------------------------------------
[2008-08-22 03:02:28] roberto at spadim dot com dot br
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
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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/45874
--
Edit this bug report at http://bugs.php.net/?id=45874&edit=1