Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58151 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93261 invoked from network); 27 Feb 2012 16:40:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2012 16:40:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.170 mail-wi0-f170.google.com Received: from [209.85.212.170] ([209.85.212.170:32966] helo=mail-wi0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/DC-40985-B02BB4F4 for ; Mon, 27 Feb 2012 11:40:44 -0500 Received: by wibhm4 with SMTP id hm4so3381472wib.29 for ; Mon, 27 Feb 2012 08:40:40 -0800 (PST) Received-SPF: pass (google.com: domain of keisial@gmail.com designates 10.180.95.34 as permitted sender) client-ip=10.180.95.34; Authentication-Results: mr.google.com; spf=pass (google.com: domain of keisial@gmail.com designates 10.180.95.34 as permitted sender) smtp.mail=keisial@gmail.com; dkim=pass header.i=keisial@gmail.com Received: from mr.google.com ([10.180.95.34]) by 10.180.95.34 with SMTP id dh2mr13053767wib.15.1330360840761 (num_hops = 1); Mon, 27 Feb 2012 08:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=YHowtdbcxB0fdDtb7+wbSOdqIQ1qlkJu7e/4pnW67kc=; b=dveBXLh3ov3yX2PnwhnLeEuJGJOdxaqSGIObjOgrQfC7G91Cj5PiCsJdZ5KQcuBdis 0jCCRFBoerplxE1ug0RAHV4elKLH/aOK+2OaJxdZ2EvZ/Ji7/xQ4alLVBME4MzPhEwiA gpAvPx3BWGkDl3ye96mxq0Tk72m5vh9T3l3qE= Received: by 10.180.95.34 with SMTP id dh2mr10288007wib.15.1330360840724; Mon, 27 Feb 2012 08:40:40 -0800 (PST) Received: from [192.168.1.26] (71.red-80-28-70.adsl.dynamic.ccgg.telefonica.net. [80.28.70.71]) by mx.google.com with ESMTPS id 9sm34077977wid.2.2012.02.27.08.40.35 (version=SSLv3 cipher=OTHER); Mon, 27 Feb 2012 08:40:40 -0800 (PST) Message-ID: <4F4BB316.6080600@gmail.com> Date: Mon, 27 Feb 2012 17:45:10 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Richard Lynch CC: "internals@lists.php.net" References: <41055a3dd36db02d3d09012231787a8d.squirrel@www.l-i-e.com> In-Reply-To: <41055a3dd36db02d3d09012231787a8d.squirrel@www.l-i-e.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scalar type hinting From: keisial@gmail.com (=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=) On 27/02/12 17:19, Richard Lynch wrote: > PRESUMPTION: > > *ANY* strict datatype could also be NULL, to represent a failure > condition... > > Otherwise, when you are out of RAM: > strict $o = new Object(); //violates strict, because Object HAS to be > NULL, as there is no RAM left for it to be an object. Uh? No. You would get a fatal error because PHP exceeded maximum allowed memory.