Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89258 invoked by uid 1010); 16 Jul 2007 14:30:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89242 invoked from network); 16 Jul 2007 14:30:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2007 14:30:41 -0000 Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.171 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.171 outbound.mailhop.org FreeBSD 4.6-4.9 Received: from [63.208.196.171] ([63.208.196.171:2183] helo=outbound.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 75/84-62403-0118B964 for ; Mon, 16 Jul 2007 10:30:41 -0400 Received: from [81.22.163.71] (helo=[10.6.109.91]) by outbound.mailhop.org with esmtpsa (SSLv3:RC4-MD5:128) (Exim 4.63) (envelope-from ) id 1IARau-000Lnr-Hu; Mon, 16 Jul 2007 10:30:37 -0400 X-MHO-User: U2FsdGVkX18QZxKYT6KriT1/ajD0AmJPwS5VVlLOmpo= X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 81.22.163.71 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+xRhre6rCMTNWjDeymbV/xZu7azuVHJow= Reply-To: jani.taskinen@iki.fi To: Nuno Lopes Cc: PHP Developers Mailing List In-Reply-To: <001901c7c7b4$af82e3e0$0100a8c0@pc07653> References: <698DE66518E7CA45812BD18E807866CE648191@us-ex1.zend.net> <54C4340A-D9EA-4B5A-B39C-B55B29B1B3BC@prohost.org> <698DE66518E7CA45812BD18E807866CE648193@us-ex1.zend.net> <001901c7c7b4$af82e3e0$0100a8c0@pc07653> Content-Type: text/plain Date: Mon, 16 Jul 2007 17:30:34 +0300 Message-ID: <1184596234.3352.20.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] POSIX regex From: jani.taskinen@sci.fi (Jani Taskinen) On Mon, 2007-07-16 at 15:22 +0100, Nuno Lopes wrote: > PCRE has a POSIX API, so it is possible to use PCRE as a drop-in replacement > for the engine behind ereg(). What I don't know is how compatible it is with > the current engine. But I think it worth investigating. Worked fine when I tested it. But it's quite pointless, it's still not unicode friendly. It's just better to use system POSIX regex funcs if ext/ereg/ is to stay..which is stupid since all functions it provides can be easily replaced with unicode friendly preg_* funcs. Nobody should use ereg_*() for anything if they want to use unicode. If they don't need unicode, they don't need PHP 6 either. > P.S.: this POSIX PCRE layer isn't currently bundled with PHP, because it > wasn't needed so far. It is bundled, just isn't compiled, see above.. :) --Jani