Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45412 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25661 invoked from network); 26 Aug 2009 11:18:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2009 11:18:37 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.219.216 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.219.216 mail-ew0-f216.google.com Received: from [209.85.219.216] ([209.85.219.216:54603] helo=mail-ew0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 67/A0-21292-B0A159A4 for ; Wed, 26 Aug 2009 07:18:36 -0400 Received: by ewy12 with SMTP id 12so48580ewy.24 for ; Wed, 26 Aug 2009 04:18:32 -0700 (PDT) Received: by 10.210.134.6 with SMTP id h6mr8110015ebd.20.1251285512856; Wed, 26 Aug 2009 04:18:32 -0700 (PDT) Received: from Macintosh-401.local (0x55534b37.adsl.cybercity.dk [85.83.75.55]) by mx.google.com with ESMTPS id 7sm89377eyb.28.2009.08.26.04.18.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 26 Aug 2009 04:18:30 -0700 (PDT) Message-ID: <4A951A04.8060707@lerdorf.com> Date: Wed, 26 Aug 2009 13:18:28 +0200 User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Derick Rethans CC: Stanislav Malyshev , Ilia Alshanetsky , Greg Beaver , 'PHP Internals' References: <4A92D936.2010107@zend.com> <4A931A1C.804@chiaraquartet.net> <39F20BFC-DAA0-4403-A52E-62CE5F4CF0FE@prohost.org> <4A9346CA.3070608@chiaraquartet.net> <4B0E7BED-C2AE-4BE5-B6CA-00B810168961@prohost.org> <4A938706.8060600@zend.com> <4A941315.9070300@zend.com> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [patch] error masks From: rasmus@lerdorf.com (Rasmus Lerdorf) Derick Rethans wrote: > On Tue, 25 Aug 2009, Stanislav Malyshev wrote: > >>> Considering that there shouldn't be any errors in the first place, this >> You must be kidding me. Any fopen of non-existing file, and loading of >> non-perfect XML from third party produces errors. > > You can test for the first case, and the second one can be prevented by > using the libxml_errors functionality. Could you show me your race-condition safe code for the first case? -Rasmus