Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59317 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26403 invoked from network); 2 Apr 2012 09:13:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Apr 2012 09:13:06 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.170 mail-yx0-f170.google.com Received: from [209.85.213.170] ([209.85.213.170:45226] helo=mail-yx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/6A-02210-0AD697F4 for ; Mon, 02 Apr 2012 05:13:05 -0400 Received: by yenl5 with SMTP id l5so1204573yen.29 for ; Mon, 02 Apr 2012 02:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=e/hYNuZdPjIOhyu9vh4dqWe771pS6JBY7QLNEe6XCtE=; b=YFv+bZUDrq5u5FJhgQe8RQfrMi2agvOF2W1Tue219zAG2Tow+Ws3ljDzJC/MiFOWKO E6EPg1fstZFKeHVOsxhG/hZ5hAOBJvF0kyttI14VkCCAM84QmFtK33nE3qRgqc4dhMpx j4wy6SyMYu1bKSxYOET/PMArpl64+5V1r0ak8tPrsN9IflE/iEsI7FHFDlJM49W7fQRX TOhh+jck1NEm183ZzNDXm1VIT4s/GsAbCktF1e0mR/4PCCQ6Y2c7skpzkjHrBarOlch0 6GBl3/Pc5NIG3kpWdY22jKMJPMV8ZhbWNn7Irpv7hT1hYBuEAZRd378qutGbkbNgKbyo d8xg== MIME-Version: 1.0 Received: by 10.236.145.34 with SMTP id o22mr6372380yhj.7.1333357982708; Mon, 02 Apr 2012 02:13:02 -0700 (PDT) Received: by 10.147.168.16 with HTTP; Mon, 2 Apr 2012 02:13:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Apr 2012 11:13:02 +0200 Message-ID: To: Gustavo Lopes Cc: "internals@lists.php.net" , Stas Malyshev Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Addition of calendar to intl From: pierre.php@gmail.com (Pierre Joye) hi Gustavo, Very nice job :) The only thing I really dislike is the procedural API. The prefix "intlcal_" is not very nice, but what I really doubt is the usefulness of the procedural APIs for the Calendar resources. It makes little to no sense to have it as it brings nothing in comparison to the OO version. I know we could have it to be consistent with other part of the intl extension but ... Cheers, On Mon, Apr 2, 2012 at 10:35 AM, Gustavo Lopes wrote: > Hi > > I have exposed ICU's Calendar API to PHP via the intl extension. It allows > date calculations with Gregorian, Chinese, Coptic, Ethiopic, Hebrew, Indian, > Islamic (civil/religious), Japanese, Persian, Taiwan and Thai Buddhist > calendars. For a broader overview of its functionality, see: > > http://icu-project.org/apiref/icu4c/classCalendar.html > > I have committed already this change: > > https://github.com/php/php-src/commit/1c16c89b96bb4e02850b198b901feebdb8da2269 > > Traditionally, these kinds of additions to the intl extension (that mostly > exposed 1 to 1 the ICU API) have not been preceded (or even followed) by any > discussion; however, Stas expressed the opinion this is not a proper course > of action nowadays. > > Consequently, if anyone has any non-trivial substantive (as opposed to > procedural) concern with this change, I will revert the merge and submit an > RFC. > > -- > Gustavo Lopes > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org