Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85876 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46176 invoked from network); 20 Apr 2015 12:03:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Apr 2015 12:03:36 -0000 Authentication-Results: pb1.pair.com header.from=ingwie2000@googlemail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ingwie2000@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.212.178 as permitted sender) X-PHP-List-Original-Sender: ingwie2000@googlemail.com X-Host-Fingerprint: 209.85.212.178 mail-wi0-f178.google.com Received: from [209.85.212.178] ([209.85.212.178:33530] helo=mail-wi0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/22-18373-61BE4355 for ; Mon, 20 Apr 2015 08:03:35 -0400 Received: by wiax7 with SMTP id x7so81788777wia.0 for ; Mon, 20 Apr 2015 05:03:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=+I2KXXgKrQaqbPmOtWNgo7lo8hmR6ltLx/NBZyzRMVU=; b=PLAYUyhuEixAzfNHP2aeSPdDIm3YuoZ5mFVgdxOAdl7Jp+EvbXTGCXFhyqbxhZWwf6 G6wKssEkjEWzTPBfIFMmmXwkAUlpvOci2QYPNzM8Cp++8JUMTtPSCehcT8pWXr9KvMyX vHD1/1xsHiuGB+DRKeMcRPHhB99qJRj7Vx3zHA9WTuRxtLWn+BjOf/P+KFANcns8mDPc N+F70dUzzYxKjZRk4iVq4gNvuylqXziIV+siulUMg6nstbw3va+dgGz9YkQlBIl9s5Vq NSmd8FDwPDfKfZON6JswYO3q468xx9WFaegDZkZYVJrwixPiQZPsET5mk96VJxMTaiNY Jz4Q== X-Received: by 10.180.98.230 with SMTP id el6mr24658773wib.16.1429531410869; Mon, 20 Apr 2015 05:03:30 -0700 (PDT) Received: from [192.168.200.47] (dslb-092-075-228-186.092.075.pools.vodafone-ip.de. [92.75.228.186]) by mx.google.com with ESMTPSA id wo10sm26977551wjb.35.2015.04.20.05.03.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Apr 2015 05:03:30 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-ID: <753D20CF-069A-4B13-B028-40FB5BED49C0@googlemail.com> Date: Mon, 20 Apr 2015 14:03:28 +0200 To: PHP Internals Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) X-Mailer: Apple Mail (2.1993) Subject: Blocked/Non-blocked streams bug From: ingwie2000@googlemail.com ("Kevin Ingwersen (Ingwie Phoenix)") Hello everyone- While looking at a project I was considering to use, I found that the = README mentioned a bug for http://php.net/stream_set_blocking . The bug = only talks about the Windows version of PHP, where the switching = appearantly does not work Turns out I got the same result. The code that = produced following output is here: https://bugs.php.net/bug.php?id=3D47918= 5.5.14 Darwin cli INI:/etc/php.ini Array ( [stream_type] =3D> STDIO [mode] =3D> r [unread_bytes] =3D> 0 [seekable] =3D>=20 [timed_out] =3D>=20 [blocked] =3D> 1 [eof] =3D>=20 ) Successfully to set blocking mode to non-blocking Array ( [stream_type] =3D> STDIO [mode] =3D> r [unread_bytes] =3D> 0 [seekable] =3D>=20 [timed_out] =3D>=20 [blocked] =3D> 1 [eof] =3D>=20 ) Why is the mode not changing? Kind regards, Ingwie=