|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-10 01:39 UTC] kalle@php.net
-Status: Open
+Status: Feedback
[2011-01-10 01:39 UTC] kalle@php.net
[2011-01-10 13:13 UTC] szoftos at freemail dot hu
[2011-05-01 00:34 UTC] szoftos at freemail dot hu
-Status: Feedback
+Status: Open
[2011-05-01 00:34 UTC] szoftos at freemail dot hu
[2011-07-02 14:10 UTC] fat@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: fat
[2011-07-02 14:12 UTC] fat@php.net
-Status: Assigned
+Status: Feedback
[2011-07-02 14:12 UTC] fat@php.net
[2011-07-03 09:49 UTC] szoftos at freemail dot hu
-Status: Feedback
+Status: Assigned
[2011-07-03 09:49 UTC] szoftos at freemail dot hu
[2011-07-05 16:49 UTC] fat@php.net
-Status: Assigned
+Status: Feedback
[2011-07-05 16:49 UTC] fat@php.net
[2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 02:00:02 2025 UTC |
Description: ------------ Hi, i was setting up squirrelmail for a ssl-based dovecot server, and got the results that somehow squirelmail cannot connect to it. After further examination i came to the reason: when running a php program in php-fpm mode, the fsockopen() function won't connect to any ssl based port. It does the tcp connection thou, but as soon as the tcp connection opens, it gets dropped by php, returning false. However, when i run my test script from php-cli, it succeeds in connecting, and gives back a stream filedescriptor. my configure line (comes from freebsd ports): './configure' '--with-layout=GNU' '--localstatedir=/var' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--with-pcre-regex=/usr/local' '--with-zlib-dir=/usr' '--program-prefix=' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--with-regex=php' '--with-zend-vm=CALL' '--enable-zend-multibyte' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.1' The following extensions are compiled in: [root@wwwjail ~]# cat /var/db/ports/php5-extensions/options # This file is auto-generated by 'make config'. # No user-servicable parts inside! # Options for php5-extensions-1.4 _OPTIONS_READ=php5-extensions-1.4 WITHOUT_BCMATH=true WITH_BZ2=true WITH_CALENDAR=true WITH_CTYPE=true WITHOUT_CURL=true WITHOUT_DBA=true WITH_DOM=true WITH_EXIF=true WITHOUT_FILEINFO=true WITHOUT_FILTER=true WITHOUT_FRIBIDI=true WITH_FTP=true WITH_GD=true WITH_GETTEXT=true WITH_GMP=true WITH_HASH=true WITH_ICONV=true WITH_IMAP=true WITHOUT_INTERBASE=true WITH_JSON=true WITHOUT_LDAP=true WITH_MBSTRING=true WITHOUT_MCRYPT=true WITHOUT_MSSQL=true WITH_MYSQL=true WITHOUT_MYSQLI=true WITHOUT_ODBC=true WITH_OPENSSL=true WITHOUT_PCNTL=true WITH_PDF=true WITH_PDO=true WITH_PDO_SQLITE=true WITHOUT_PGSQL=true WITH_POSIX=true WITH_PSPELL=true WITHOUT_READLINE=true WITHOUT_RECODE=true WITH_SESSION=true WITHOUT_SHMOP=true WITH_SIMPLEXML=true WITHOUT_SNMP=true WITH_SOAP=true WITHOUT_SOCKETS=true WITH_SQLITE=true WITHOUT_SYBASE_CT=true WITHOUT_SYSVMSG=true WITHOUT_SYSVSEM=true WITHOUT_SYSVSHM=true WITHOUT_TIDY=true WITH_TOKENIZER=true WITHOUT_WDDX=true WITH_XML=true WITH_XMLREADER=true WITH_XMLRPC=true WITH_XMLWRITER=true WITHOUT_XSL=true WITHOUT_YAZ=true WITH_ZIP=true WITH_ZLIB=true Test script: --------------- <?php $imap_stream = fsockopen('tls://127.0.0.4', 993, $error_number, $error_string, 15); var_dump($imap_stream); ?> Expected result: ---------------- A connection error message by php, or a successful connection. Actual result: -------------- bool(false)