Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17486 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74451 invoked by uid 1010); 2 Aug 2005 08:23:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 74436 invoked from network); 2 Aug 2005 08:23:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2005 08:23:29 -0000 X-Host-Fingerprint: 212.55.202.210 host-210.bitflux.ch Linux 2.5 (sometimes 2.4) (4) Received: from ([212.55.202.210:4385] helo=devel.bitflux.ch) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 86/11-04646-F7D2FE24 for ; Tue, 02 Aug 2005 04:23:27 -0400 Received: from localhost (localhost [127.0.0.1]) by devel.bitflux.ch (Postfix) with ESMTP id 7F1A9E73E4; Tue, 2 Aug 2005 10:23:23 +0200 (CEST) Received: from devel.bitflux.ch ([127.0.0.1]) by localhost (devel.bitflux.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20406-02-2; Tue, 2 Aug 2005 10:23:20 +0200 (CEST) Received: from [192.168.84.92] (host-195.bitflux.ch [212.55.202.195]) by devel.bitflux.ch (Postfix) with ESMTP id DF488E73E2; Tue, 2 Aug 2005 10:23:20 +0200 (CEST) Message-ID: <42EF2D78.20105@bitflux.ch> Date: Tue, 02 Aug 2005 10:23:20 +0200 User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ron Korving Cc: 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> In-Reply-To: <80.90.04646.35C2FE24@pb1.pair.com> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at bitflux.ch Subject: Re: [PHP-DEV] is this a bug? From: chregu@bitflux.ch (Christian Stocker) 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