Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5853 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76161 invoked by uid 1010); 1 Dec 2003 08:19:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76107 invoked from network); 1 Dec 2003 08:19:14 -0000 Received: from unknown (HELO bambi.bitflux.ch) (212.71.97.156) by pb1.pair.com with SMTP; 1 Dec 2003 08:19:14 -0000 Received: from localhost (reh [127.0.0.1]) by bambi.bitflux.ch (Postfix) with ESMTP id 6CEED7FA06; Mon, 1 Dec 2003 09:19:14 +0100 (CET) Received: from bambi.bitflux.ch ([127.0.0.1]) by localhost (bambi [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28926-03; Mon, 1 Dec 2003 09:19:14 +0100 (CET) Received: from bitflux.ch (dclient217-162-237-29.hispeed.ch [217.162.237.29]) by bambi.bitflux.ch (Postfix) with ESMTP id D75EF7F9A4; Mon, 1 Dec 2003 09:19:13 +0100 (CET) Message-ID: <3FCAF980.9070801@bitflux.ch> Date: Mon, 01 Dec 2003 09:19:12 +0100 User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Adam Maccabee Trachtenberg Cc: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p3 (Debian) at bitflux.ch X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) Subject: Re: [PHP-DEV] Bug in DOM document.c php_dom_ctx_error_level() From: chregu@bitflux.ch (Christian Stocker) hi adam it's commited. thanks fot the patch chregu On 12/1/03 9:10 AM, Adam Maccabee Trachtenberg wrote: > The php_dom_ctx_error_level() function in DOM document.c assumes that > input->filename is always non-null. This is not true when the file is > an entity. > > You can trigger this by killing your Internet connection and then > loading any XML file that references an external entity. For example: > > "-//W3C//ENTITIES Latin 1 for XHTML//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> > %HTMLlat1; > ]> > > A patch to fix this is available at: > http://www.trachtenberg.com/patches/php_dom_ctx_error_level.txt > > -adam > -- 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