Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34953 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16730 invoked by uid 1010); 27 Jan 2008 06:08:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16715 invoked from network); 27 Jan 2008 06:08:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2008 06:08:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=tokul@users.sourceforge.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=tokul@users.sourceforge.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain users.sourceforge.net from 213.197.162.99 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 213.197.162.99 avilys.eik.lt Linux 2.6 Received: from [213.197.162.99] ([213.197.162.99:48722] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/A3-08286-4EF1C974 for ; Sun, 27 Jan 2008 01:08:37 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 95F8024893F for ; Sun, 27 Jan 2008 08:05:38 +0200 (EET) Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 76CA924893E for ; Sun, 27 Jan 2008 08:05:38 +0200 (EET) Received: from 78.61.224.253 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Sun, 27 Jan 2008 08:05:38 +0200 (EET) Message-ID: <51139.78.61.224.253.1201413938.nsm@avilys.eik.lt> In-Reply-To: <479BB834.2040001@zend.com> References: <200801241426.39756.arnaud.lb@gmail.com> <479A613C.8030604@zend.com> <37582.78.61.224.253.1201331756.nsm@avilys.eik.lt> <479BB834.2040001@zend.com> Date: Sun, 27 Jan 2008 08:05:38 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.4 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] [PATCH] Bug #43896 htmlspecialchars returns empty string on invalid unicode sequence From: tokul@users.sourceforge.net ("Tomas Kuliavas") >> Instead of using simple sanitizing function users are forced to check >> for errors. How good is that? It makes code complex or unreliable. > > Explain me again how checking for errors makes code unreliable? OR unreliable. If you check for errors, sanitizing code is complex. If you don't check and expect it to work, code can cause data loss (is unreliable). -- Tomas