Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44634 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5381 invoked from network); 2 Jul 2009 10:56:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2009 10:56:05 -0000 Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.153 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 72.14.220.153 fg-out-1718.google.com Received: from [72.14.220.153] ([72.14.220.153:48254] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/81-32416-4429C4A4 for ; Thu, 02 Jul 2009 06:56:05 -0400 Received: by fg-out-1718.google.com with SMTP id e12so463501fga.0 for ; Thu, 02 Jul 2009 03:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6MioLD42RJDpup+BMm7HndO94IkoFY0MIFe4j5GFIYM=; b=Q6AFcO5Q8C//aYvA4PEddWRYitTHIadZol8y6hh4b9AFgXr0BuId8o9BloPoBmC+95 7fUxWIcRjIjxPhRL051WyUsiX0CraqWyGmODUMNsGCJqgt+/hHg223V8rFzKVZ0MsWl4 ZOhioBqzO9OfsTyBawaWPJcV+xF3hOYOmlyns= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=JjV2uX5f+7311/wwD8Ht8w/IoHYweSKOLuok/7wUeCtqSo4KDhMpc9uHmV/DDMSfAk maTWivn6s41m0ziotBi06nomyIU32C1kcps/P5FBG35rmeXEqaBvrHTHJSsvE49b/ewd fGq91SeTirWtNcvZzqMj2vB/77MjJXjpzehbI= MIME-Version: 1.0 Received: by 10.86.76.11 with SMTP id y11mr14802fga.56.1246532161366; Thu, 02 Jul 2009 03:56:01 -0700 (PDT) In-Reply-To: <4A4C7CE6.6070107@gmail.com> References: <4A4C7CE6.6070107@gmail.com> Date: Thu, 2 Jul 2009 12:56:01 +0200 Message-ID: <7f3ed2c30907020356s45fd2c56l30b77e92fec61a8c@mail.gmail.com> To: "Ionut G. Stan" Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Type hinting revisited for PHP 5.3 From: hannes.magnusson@gmail.com (Hannes Magnusson) On Thu, Jul 2, 2009 at 11:24, Ionut G. Stan wrote: > Hi, > > I'm a userland developer with limited C skills, and while I don't yet have > an > opinion on the whole type enforcing issue, aside from a fear of libraries > abusing > it, I'd like to propose a little change in the patch. > > Is it possible that instead of an E_RECOVERABLE_ERROR, an Exception to > be thrown? I don't know whether InvalidArgumentException satisfies the > semantics, > but it's a step in that direction.