Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22706 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54249 invoked by uid 1010); 10 Apr 2006 13:31:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 54234 invoked from network); 10 Apr 2006 13:31:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Apr 2006 13:31:57 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:5628] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B3/76-09839-C4E5A344 for ; Mon, 10 Apr 2006 09:31:56 -0400 Received: (qmail 23177 invoked from network); 10 Apr 2006 13:31:51 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 10 Apr 2006 13:31:51 -0000 Message-ID: <443A5E48.3010308@zend.com> Date: Mon, 10 Apr 2006 17:31:52 +0400 User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: pierre.php@gmail.com CC: internals@lists.php.net References: <20060410151128.1fdaa0ab@localhost.localdomain> In-Reply-To: <20060410151128.1fdaa0ab@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ext/filter, custom decimal separator, supports leading 0, regexp From: antony@zend.com (Antony Dovgal) +1 If we're going to make it the default way of handling user data, then it makes sense to implement it as flexible as possible, and regex stuff should be compatible with ext/pcre. On 10.04.2006 17:11, Pierre wrote: > Hello, > > Due to the success on my precedent post, I try again to get some > comments on my precedent patch and some new things I need in ext/filer. > > This patch adds or changes the following things: > > - regexp uses functions (ext/pcre) > - 100% compatible with preg_* functions > - Use of expression caches and other (faster) > - Regexp tests now work > > - rewrite the filter_float > - support custom decimal separator. Let the developer decides which > separator to use, the default is not changed > - slightly faster than the old implementation (and with the new > features) > > The patch: > http://pear.php.net/~pierre/filter_float_add_custom_seps_and_pcre.txt > > Some examples: > http://pecl.php.net/~pierre/filter_float.phps > > Any ideas or comments are welcome, > > --Pierre > -- Wbr, Antony Dovgal