Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79002 invoked from network); 13 Mar 2012 17:48:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Mar 2012 17:48:31 -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 77.240.252.9 cause and error) X-PHP-List-Original-Sender: tokul@users.sourceforge.net X-Host-Fingerprint: 77.240.252.9 avilys.eik.lt Linux 2.6 Received: from [77.240.252.9] ([77.240.252.9:45525] helo=avilys.eik.lt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/33-60712-D688F5F4 for ; Tue, 13 Mar 2012 12:48:30 -0500 Received: from avilys.eik.lt (avilys.local [127.0.0.1]) by avilys.eik.lt (Postfix) with ESMTP id 984D41F5281 for ; Tue, 13 Mar 2012 19:48:26 +0200 (EET) Received: from 86.38.15.121 (NaSMail authenticated user tomas@topolis.lt) by avilys.eik.lt with HTTP; Tue, 13 Mar 2012 19:48:26 +0200 (EET) Message-ID: <38727.56260f79.1331660906.nsm@avilys.eik.lt> In-Reply-To: <8d9c19f4f0b5086e495507a162fb7454.squirrel@www.l-i-e.com> References: <4F5D9C77.3030000@lerdorf.com> <4F5DA152.10109@sugarcrm.com> <4F5DA894.8060606@lerdorf.com> <4F5DAB49.3030808@sugarcrm.com> <4F5DAFCE.8020600@lerdorf.com> <4F5E5148.4030106@sugarcrm.com> <4F5E5219.7080501@lerdorf.com> <8d9c19f4f0b5086e495507a162fb7454.squirrel@www.l-i-e.com> Date: Tue, 13 Mar 2012 19:48:26 +0200 (EET) To: internals@lists.php.net User-Agent: NaSMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] default charset confusion From: tokul@users.sourceforge.net ("Tomas Kuliavas") 2012.03.13 16:38 Richard Lynch rašė: > I'd have to agree with Stas that everybody should start passing in a > variable there, that can be set somewhere in a config, or, perhaps, > would DEFAULT to, errrr... You do realize that suggestions on this thread and original bug reporter failed to make correct decisions about values that should be used to migrate original function to PHP 5.4 compatible syntax? htmlspecialchars without arguments does not default to ENT_QUOTES or NULL. Failure to choose proper second argument value will lead to different exploit or data corruption. > You can't default to a function call. Changing default in function was bad idea. Ignoring bug reports about f....ed up documentation and closing them with bogus explanations might not be bad idea, but it really helps in alienating your developer base. -- Tomas