| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2005-02-14 11:20 UTC] james-php at bytehosting dot com
  [2005-02-14 11:23 UTC] james-php at bytehosting dot com
  [2005-02-14 20:19 UTC] wez@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
Description: ------------ When php is compiled against openssl. If you use a non_blocking stream PHP does not obet the non_blocking options. If you REMOVE the ssl:// and connect to a non-secure port, and it works perfectly fine. OpenSSL 0.9.7e PHP 4.3.10 (cgi-fcgi) (built: Dec 27 2004 04:01:15) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Kernel: 2.4.22-36mdkenterprise Mandrake Linux release 9.2 (FiveStar) for i586 Dual xeon + hyperthreading: model name : Intel(R) Xeon(TM) CPU 2.40GHz stepping : 9 cpu MHz : 2389.117 cache size : 512 KB ./configure --enable-fastcgi --with-mysql --enable-aspell --enable-ftp --enable-xml --enable-trans-sid --enable-curl \ --enable-force-cgi-redirect --with-gd --with-zlib-dir --with-curl=/usr/include/curl --with-openssl \ --with-openssl-dir=/usr/compile/openssl-0.9.7e Reproduce code: --------------- <? $fd = fsockopen("ssl://server.com","5557"); set_stream_blocking($fd,FALSE); $buff = fgets($fd); echo "You will never see this, as fgets hangs forever."; ?> Expected result: ---------------- Socket to be non-blocked, and return immediately.