Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63115 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44905 invoked from network); 18 Sep 2012 20:12:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2012 20:12:58 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 64.22.89.134 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 64.22.89.134 oxmail.registrar-servers.com Received: from [64.22.89.134] ([64.22.89.134:57427] helo=oxmail.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/A3-07072-9C5D8505 for ; Tue, 18 Sep 2012 16:12:57 -0400 Received: from [192.168.0.200] (5ad4bfa1.bb.sky.com [90.212.191.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id DCFD1F0026; Tue, 18 Sep 2012 16:12:53 -0400 (EDT) Message-ID: <5058D596.3010604@ajf.me> Date: Tue, 18 Sep 2012 21:12:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Paul Dragoonis CC: Rasmus Lerdorf , PHP Internals References: <5058A697.30903@sugarcrm.com> <5058A8B8.3070404@sugarcrm.com> <5058A97A.4080900@ajf.me> <5058AABA.1040406@sugarcrm.com> <5058B5A5.6090302@sugarcrm.com> <5058BA43.8010806@mrclay.org> <5058BBA6.4090702@sugarcrm.com> <5058BECC.8080409@lerdorf.com> <5058CE31.5060401@lerdorf.com> <5058D070.1030605@lerdorf.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Implementing a core anti-XSS escaping class From: ajf@ajf.me (Andrew Faulds) On 18/09/12 21:11, Paul Dragoonis wrote: > The existing implementations at symfony\zend are working pretty well. > They're using string manipulation and regex functions. > If we port it to C, can't we still use the exact same functions that > the PHP_FUNCTION() macros are calling to pretty much clone it. > > Would this minimise the amount of change (if any) ? To some extent, yes, but Rasmus is right in that there would be certain bugs. In C, we don't have implicit string casting, for example. -- Andrew Faulds http://ajf.me/