Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27982 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6454 invoked by uid 1010); 10 Feb 2007 13:47:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 6439 invoked from network); 10 Feb 2007 13:47:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Feb 2007 13:47:11 -0000 Authentication-Results: pb1.pair.com header.from=nsabbi@officinedigitali.it; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=nsabbi@officinedigitali.it; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain officinedigitali.it from 85.18.95.71 cause and error) X-PHP-List-Original-Sender: nsabbi@officinedigitali.it X-Host-Fingerprint: 85.18.95.71 aa011msr.fastwebnet.it Linux 2.5 (sometimes 2.4) (4) Received: from [85.18.95.71] ([85.18.95.71:34623] helo=aa011msr.fastwebnet.it) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/67-29728-EDCCDC54 for ; Sat, 10 Feb 2007 08:47:10 -0500 Received: from [192.168.2.101] (37.2.0.113) by aa011msr.fastwebnet.it (7.3.105.6) (authenticated as nicola_sabbi) id 45ACEE6E0150D6B3 for internals@lists.php.net; Sat, 10 Feb 2007 14:47:07 +0100 Message-ID: <45CDCD4D.7000605@officinedigitali.it> Date: Sat, 10 Feb 2007 14:49:01 +0100 User-Agent: Mozilla Thunderbird 1.0.7-4mdk (X11/20051221) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net References: <45CC1984.6010304@pooteeweet.org> <45CCAAF3.2030806@officinedigitali.it> <45CCDA75.9020404@bitflux.ch> In-Reply-To: <45CCDA75.9020404@bitflux.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: DOM recover error reporting mode From: nsabbi@officinedigitali.it (nico) Christian Stocker wrote: >On 9.2.2007 18:10 Uhr, Nico Sabbi wrote: > > >>may I re-propose the attached patch? The first time it was ignored, but >>the current behaviour of >>dom module is extremely annoying >> >> > >Completely out of context your post, but I was the one who wrote that >part of code, since I was more or less forced to implement it the way it >is. > >I'm fine with removing it, but there were big objections against the >whole recover stuff back then when I committed it, so the way it works >currently was some kind of compromise > >See also: >http://blog.bitflux.ch/archive/2004/08/13/parsing_non_well_formed_xml_documents_in_php.html >http://blog.bitflux.ch/archive/2004/08/20/parsing_non_well_formed_xml_documents_considered_harmful.html > >and don't forget the comments :) > > I see, but in my opinion since the recover mode is off by default and E_WARNING is on by default, if recover mode is explicitly activated php should respect the developer's need to keep the interpreter as quiet as possible. A developer with more stringent needs will either keep recover mode off or activate it alongside with E_WARNING. BTW, I've seen thousand of xml docs declared "broken" not for syntax errors, but for the simple presence of characters not corresponding the the encoding specified... Nico