Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73816 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28763 invoked from network); 27 Apr 2014 18:48:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2014 18:48:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.45 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.45 mail-oa0-f45.google.com Received: from [209.85.219.45] ([209.85.219.45:50213] helo=mail-oa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/10-24825-9015D535 for ; Sun, 27 Apr 2014 14:48:42 -0400 Received: by mail-oa0-f45.google.com with SMTP id eb12so6313528oac.4 for ; Sun, 27 Apr 2014 11:48:38 -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=1ffYxwPgyejrMslYqtSNzXVaODhfuwKAOHJsHVBeLz8=; b=xYS/ZkE8xYOvAoK9vzFkwuW3vFaJxz9pDPIZyXUiP9B/O9nJrEDy55iglFTbFJ8bXC MXVNX1AAKFPlz9riXUheJwLwmoKspJ5PNT8afQs/Fvcmj5K7W0BhEQG15BdAPbIJ4fK9 Y5pMARsmSW210v/G9tldUo4EBGQvX56tzUzylNAcYUEzw1GVsUtBDxEhwKNm4NQFPfoZ Fm9hQqPs8CRAA26h68ttUkqmD1roESShGPvMk2EakrUD0xfe+ofq+X3VeEo6B4RuKIiz PRQT5ManjIeaqHSLw526svXZQHi/07p6aJr6QE8UNEQ+uU7EoE4z3rrghWi7fMuy7TMd OR9w== MIME-Version: 1.0 X-Received: by 10.60.131.40 with SMTP id oj8mr18151430oeb.14.1398624518467; Sun, 27 Apr 2014 11:48:38 -0700 (PDT) Received: by 10.76.77.100 with HTTP; Sun, 27 Apr 2014 11:48:38 -0700 (PDT) In-Reply-To: <1005082480.406481.1398600039315.open-xchange@email.1und1.de> References: <1005082480.406481.1398600039315.open-xchange@email.1und1.de> Date: Sun, 27 Apr 2014 12:48:38 -0600 Message-ID: To: "php@thekid.de" Cc: internals Content-Type: multipart/alternative; boundary=089e013cb82898f57f04f80aa515 Subject: Re: [PHP-DEV] RFC: Catchable "call to a member function of a non-object" From: morrison.levi@gmail.com (Levi Morrison) --089e013cb82898f57f04f80aa515 Content-Type: text/plain; charset=UTF-8 The example from the Introduction looks like this: // ...when getAction()returns null: $this->getAction()->invoke(); My first thought is that if getAction is declared with a return type as per the currently under discussion return type RFC, then when a null is returned you'd get an E_RECOVERABLE error there already. I realize there are other cases and motivations for this RFC, but this is one motivating case for the return type RFC in the first place. --089e013cb82898f57f04f80aa515--