Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26627 invoked from network); 23 Oct 2011 12:59:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Oct 2011 12:59:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=jared.williams1@ntlworld.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jared.williams1@ntlworld.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ntlworld.com designates 81.103.221.47 as permitted sender) X-PHP-List-Original-Sender: jared.williams1@ntlworld.com X-Host-Fingerprint: 81.103.221.47 mtaout01-winn.ispmail.ntl.com Solaris 10 (beta) Received: from [81.103.221.47] ([81.103.221.47:41737] helo=mtaout01-winn.ispmail.ntl.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6F/30-22525-5AF04AE4 for ; Sun, 23 Oct 2011 08:59:18 -0400 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20111023125914.SINY13501.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Sun, 23 Oct 2011 13:59:14 +0100 Received: from p2 ([82.0.126.219]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.3.00.04.00 201-2196-133-20080908) with ESMTP id <20111023125914.YUUV20122.aamtaout01-winn.ispmail.ntl.com@p2>; Sun, 23 Oct 2011 13:59:14 +0100 To: "'Tom Boutell'" , "'PHP Internals'" Date: Sun, 23 Oct 2011 13:59:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: Thread-Index: AcyQKWBDxprIub7mT2SWmh7mEFA7RgBWesMg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 Message-ID: <20111023125914.YUUV20122.aamtaout01-winn.ispmail.ntl.com@p2> X-Cloudmark-Analysis: v=1.1 cv=JvdXmxIgLJv2/GthKqHpGJEEHukvLcvELVXUanXFreg= c=1 sm=0 a=x9d-lp39UAcA:10 a=uObrxnre4hsA:10 a=oHf_AeXmDeQA:10 a=kj9zAlcOel0A:10 a=gu6fZOg2AAAA:8 a=ttyntS5QAAAA:8 a=67BIL_jfAAAA:8 a=RrIcKKNB0MstGcENzSkA:9 a=uWOfOzlniGx-YDPsCjoA:7 a=CjuIK1q_8ugA:10 a=-qAUXRLvPw8A:10 a=T43CsW2iU-sA:10 a=NKOrfR4qB8QA:10 a=VrdyGMU8UawA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Subject: RE: [PHP-DEV] fclose(), file_put_contents(), copy() all fail to return false on error From: jared.williams1@ntlworld.com ("Jared Williams") References: Raised this 5 years ago.. http://marc.info/?l=php-internals&m=113998880315574&w=2 Jared > -----Original Message----- > From: Tom Boutell [mailto:tom@punkave.com] > Sent: 21 October 2011 20:40 > To: PHP Internals > Subject: [PHP-DEV] fclose(), file_put_contents(), copy() all > fail to return false on error > > It appears that all three of these functions do not return > false on error as they should if the stream is not flushed > successfully. Yipes! > > https://bugs.php.net/bug.php?id=60110 > > Am I missing something here? > > It's especially bad with, say, an S3 stream wrapper that > wants to write the whole thing as one HTTP request, but it > could bite you with plain old files too. > > -- > Tom Boutell > P'unk Avenue > 215 755 1330 > punkave.com > window.punkave.com > > -- > PHP Internals - PHP Runtime Development Mailing List To > unsubscribe, visit: http://www.php.net/unsub.php >