Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61142 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76799 invoked from network); 11 Jul 2012 20:47:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2012 20:47:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.123 smtp123.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.123] ([67.192.241.123:35041] helo=smtp123.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 76/50-09688-F56EDFF4 for ; Wed, 11 Jul 2012 16:47:27 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp12.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id C915D3C052D; Wed, 11 Jul 2012 16:47:24 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp12.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 4920D3C12A8; Wed, 11 Jul 2012 16:47:24 -0400 (EDT) Message-ID: <4FFDE65B.4020509@sugarcrm.com> Date: Wed, 11 Jul 2012 13:47:23 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Gustavo Lopes CC: Pierre Joye , =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= , PHP Internals References: <4FFD11C1.3090007@sugarcrm.com> <1342029955.13569.17.camel@guybrush> <4FFDC10F.6050106@sugarcrm.com> <4FFDDBAD.7070100@sugarcrm.com> <4FFDDF66.2070806@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: bug 18556 - tolower & locales From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > You're changing the Zend API. You introduce new public functions. This > means an extension that uses the new symbols will be compatible with PHP > 5.4.6, but not before. When this happens, it's very annoying (like the > PHP_FE_END in 5.3, though that only affected source compatibility -- this > also affects binary compatibility). This is true, however relevant only if your extension uses low-level Zend engine functions for case-insensitive string comparison, and you're not using zvals, and you require this comparison to depend on current locale. This is pretty exotic use case unless you're reimplementing strcasecmp(). > You also change the behavior of zend_binary_strncasecmp(). Just like you > had to change ext/standard/string.c, other extensions may also have to > (not to mention the risk you missed something). That's kind of the point of the fix - to change the behavior (which previously depended on current locale and thus produced wrong behavior). -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227