Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62609 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33599 invoked from network); 31 Aug 2012 15:55:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2012 15:55:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain strojny.net from 46.4.40.248 cause and error) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 46.4.40.248 milch.schokokeks.org Received: from [46.4.40.248] ([46.4.40.248:59444] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A9/24-09246-96ED0405 for ; Fri, 31 Aug 2012 11:55:22 -0400 Received: from [192.168.1.34] (p5099f5c8.dip0.t-ipconnect.de [::ffff:80.153.245.200]) (AUTH: PLAIN lars@schokokeks.org, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by milch.schokokeks.org with ESMTPSA; Fri, 31 Aug 2012 17:55:18 +0200 id 0000000000000022.000000005040DE66.000077A7 Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) In-Reply-To: <878B66F25116489D813EA1A7B9236797@etcheverry.biz> Date: Fri, 31 Aug 2012 17:55:16 +0200 Cc: PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <878B66F25116489D813EA1A7B9236797@etcheverry.biz> To: Axel Etcheverry X-Mailer: Apple Mail (2.1485) Subject: Re: [PHP-DEV] A new php Validator and Filter interface for the SPL From: lars@strojny.net (Lars Strojny) Hi Axel, I think PHP core is just not the place for such standardization, as long = as those interface do not interact with the engine (as i.e. Traversable = does). Different frameworks might or might not agree on various = interoperability standards and that=92s fine. Having those interfaces in = core would bind the life- and deprecation cycles of interoperability = agreements to the lifecycle of the language. cu, Lars Am 31.08.2012 um 14:55 schrieb Axel Etcheverry : > Hi,=20 >=20 > Please take a look at https://github.com/php/php-src/pull/180 >=20 > This patch is designed to offer two new interfaces in the SPL to = standardize filters and validators of frameworks (ZF, SF, etc ...). >=20 > This allows the developer to use validators and filters of different = sources in a same application. >=20 > The tests are in the patch. >=20 > Comments and feedback welcome. >=20 > --=20 > Best regards, > Axel Etcheverry >=20 > Phone : +33 6 84 15 57 52 > Twitter : @euskadi31 (http://twitter.com/euskadi31) > Home : http://www.axel-etcheverry.com = (http://www.axel-etcheverry.com/) > Audiofanzine : http://fr.audiofanzine.com = (http://fr.audiofanzine.com/) > Auto-broc : http://www.auto-broc.fr (http://www.auto-broc.fr/) >=20 >=20 >=20