Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99392 invoked by uid 1010); 19 Jul 2007 23:14:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99377 invoked from network); 19 Jul 2007 23:14:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jul 2007 23:14:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott.mcnaught@synergy8.com; spf=softfail; sender-id=softfail Authentication-Results: pb1.pair.com header.from=scott.mcnaught@synergy8.com; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain synergy8.com does not designate 202.174.102.11 as permitted sender) X-PHP-List-Original-Sender: scott.mcnaught@synergy8.com X-Host-Fingerprint: 202.174.102.11 au01.synergy8.com Linux 2.6 Received: from [202.174.102.11] ([202.174.102.11:59214] helo=au01.synergy8.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/81-20012-F50FF964 for ; Thu, 19 Jul 2007 19:14:42 -0400 Received: from [203.206.112.114] (helo=scottnote) by au01.synergy8.com with esmtpa (Exim 4.66) (envelope-from ) id 1IBfCc-0005hR-Eg for internals@lists.php.net; Fri, 20 Jul 2007 09:14:34 +1000 Reply-To: To: References: <698DE66518E7CA45812BD18E807866CE648191@us-ex1.zend.net> <54C4340A-D9EA-4B5A-B39C-B55B29B1B3BC@prohost.org> <698DE66518E7CA45812BD18E807866CE648193@us-ex1.zend.net> <469B7FB1.1070507@pooteeweet.org> <698DE66518E7CA45812BD18E807866CE648290@us-ex1.zend.net> <469C6436.2060009@pooteeweet.org> <698DE66518E7CA45812BD18E807866CE6483DF@us-ex1.zend.net> <469CD717.2070607@pooteeweet.org> <469CE8CE.5080208@zend.com> <698DE66518E7CA45812BD18E807866CE648722@us-ex1.zend.net> <20A6448D-A497-4D95-AA9E-72D69421BB88@gravitonic.com> <469FE9F6.7050406@zend.com> In-Reply-To: <469FE9F6.7050406@zend.com> Date: Fri, 20 Jul 2007 09:14:34 +1000 Message-ID: <000001c7ca5a$92eef630$b8cce290$@mcnaught@synergy8.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcfKVtTTgNB8S3nWQR24TDKmbpaQNgAAeXoA Content-Language: en-au X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - au01.synergy8.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - synergy8.com Subject: RE: [PHP-DEV] POSIX regex From: scott.mcnaught@synergy8.com I don't like the idea of having a "u" prefix for Unicode strings. It may improve performance, and give you some level of fine grain control, but... - It breaks your "keep php simple" policy by introducing a lot of new functions (ugly). - I (plus a lot of others) have an existing php5 application which I wish to eventually use with Unicode, and like others, I don't want to spend time refactoring. - It will also introduce bugs when programmers accidentally forget to add the "u" prefix when working with unicode. If you always want to produce Unicode, I think its best to always use a cast or a conversion function. Eg $str = (unicode)(strtoupper($str)); Or $str = unicode_val(strtoupper($str)); My 2c :) -----Original Message----- From: Stanislav Malyshev [mailto:stas@zend.com] Sent: Friday, 20 July 2007 8:47 AM To: Andrei Zmievski Cc: Andi Gutmans; Derick Rethans; Lukas Kahwe Smith; Ilia Alshanetsky; jani.taskinen@iki.fi; internals@lists.php.net Subject: Re: [PHP-DEV] POSIX regex > Python did go down that road, but take a look at Python 3000 effort and > you will see that what they are trying to do is exactly what we have: > native Unicode strings, without prefixes. Maybe still having u"" - that always produce unicode, regardless of semantics - could be helpful... -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php