Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31829 invoked from network); 13 Sep 2010 17:08:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2010 17:08:44 -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.203 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.203 smtp203.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.203] ([67.192.241.203:47336] helo=smtp203.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/58-24501-A9A5E8C4 for ; Mon, 13 Sep 2010 13:08:44 -0400 Received: from relay20.relay.dfw.mlsrvr.com (localhost [127.0.0.1]) by relay20.relay.dfw.mlsrvr.com (SMTP Server) with ESMTP id 5C30321282D0; Mon, 13 Sep 2010 13:08:39 -0400 (EDT) Received: by relay20.relay.dfw.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 02D2521282AC; Mon, 13 Sep 2010 13:08:38 -0400 (EDT) Message-ID: <4C8E5A96.1090301@sugarcrm.com> Date: Mon, 13 Sep 2010 10:08:38 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: Benjamin Eberlei CC: "internals@lists.php.net" References: <4C873C0F.1010200@zend.com> <4C879613.7090709@zend.com> <4C887D2B.2000605@zend.com> <4C8AC526.7000505@sugarcrm.com> <4C8B6168.30504@mohiva.com> <4C8BC81E.8000605@sugarcrm.com> <7.0.1.0.2.20100913145703.0d226d90@zend.com> <7.0.1.0.2.20100913172559.0d2277d0@zend.com> <562c6581919d7d3e11c4a24ebbdb9ac1@beberlei.de> In-Reply-To: <562c6581919d7d3e11c4a24ebbdb9ac1@beberlei.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP Annotations RFC + Patch From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > [ExpectedException("InvalidArgumentException")] > [ExpectedException("InvalidArgumentException", "Expected message", 40")] > [Validation(array("type" => "EMail", "options" => array("checkMX" => > true))] This doesn't look like PHP code. In PHP code, nether [] by itself, nor [ClassName('string')] mean anything. It's new sytnax. > new ExpectedException("InvlaidArgumentException") > new Validation(array("type" => "EMail", "options" => array("checkMX" => > true)) This one is not very clear either - when is this "new" executed? What it is being assigned to? What you can and can't use there? It's all new concepts - which I'm not sure worth introducing. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227