Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82766 invoked by uid 1010); 2 Aug 2005 08:34:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82750 invoked from network); 2 Aug 2005 08:34:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2005 08:34:47 -0000 X-Host-Fingerprint: 62.58.68.2 firewall.axit.nl Received: from ([62.58.68.2:2197] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FF/32-04646-6203FE24 for ; Tue, 02 Aug 2005 04:34:46 -0400 Message-ID: To: internals@lists.php.net References: <52.F1.04646.C51DDE24@pb1.pair.com><000001c5968e$951b6490$e902a8c0@thinkpad> <4e89b4260508010726198d1f45@mail.gmail.com> <16.A7.04646.DA46EE24@pb1.pair.com> <42EE6F26.4040400@ctindustries.net> <80.90.04646.35C2FE24@pb1.pair.com> <42EF2D78.20105@bitflux.ch> Date: Tue, 2 Aug 2005 10:34:40 +0200 Lines: 91 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 62.58.68.2 Subject: Re: [PHP-DEV] is this a bug? From: r.korving@xit.nl ("Ron Korving") The 5.1 error handling looks very promising. For me personally, the 3 warnings are no problem. I want to suppress all 3 of them (so I don't really care if I suppress 1 or 3 and I don't really care how these warnings are formatted). But I figured what goes for me, doesn't necessarily go for the rest of the world. Besides that, don't we all want to see PHP become better and better? :) Of the 3 warnings: (1) Warning: I/O warning : failed to load external entity "/non%20existant%20file.xsd" in /www/admin/dev/bugreports/dom-validate/index.php on line 4 (2) Warning: xmlSchemaParse: could not load '/non existant file.xsd'. in /www/admin/dev/bugreports/dom-validate/index.php on line 4 (3) Warning: Invalid Schema in /www/admin/dev/bugreports/dom-validate/index.php on line 4 I would prefer to just see warning of the highest level (3), but it does lack the information that says the actual XSD-file is missing. Again, for me personally, this requires no fix. Ron "Christian Stocker" schreef in bericht news:42EF2D78.20105@bitflux.ch... > > > On 2.8.2005 10:16 Uhr, Ron Korving wrote: > > Shouldn't PHP suppress this warning then? Right now 3 warnings are shown for > > just one bad statement. I think one warning would suffice. Of course this is > > all rather unimportant and very low-priority, but I still think it's a > > situation that could be improved. > > > > You can see the warnings at http://bugs.php.net/bug.php?id=33951 > > AFAICS these are all libxml2 warnings. We would have to start > intercepting those warnings and decide which one we want to show and > which not... Too much hassle IMHO. In your scenario, which should be shown? > > And with the new libxml error handler code in PHP 5.1, the developer can > decide, what he wants to show and what not... See > http://www.php.net/libxml_use_internal_errors > and > http://php5.bitflux.org/xml5_1/slide_13.php > for some explenation and examples > > chregu > > > Ron > > > > "Rob Richards" schreef in bericht > > news:42EE6F26.4040400@ctindustries.net... > > > >>The warning is being issued from libxml and the URL (which it encodes > >>internally) is just there to inform you that it had problems dealing > >>with the external entitity. Either surpress the errors when calling > >>whichever function or you can use the new error handling for xml in 5.1 > >>which wont issue/display errors directly but any can be retrieved after > >>the function call. > >> > >>Rob > >> > >>Ron Korving wrote: > >> > >> > >>>Yes, spaces are illegal.. Thing is though, the output of the warning has > >>>nothing to do with urls (unless it just assumes the stream is always from > > > > a > > > >>>remote source or something). > >>> > >>>I'll post a bugreport. > >>> > >>>Ron > >>> > >>> > > > > > > -- > christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich > phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 > http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB