Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86218 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54047 invoked from network); 14 May 2015 10:43:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2015 10:43:50 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.178 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.214.178 mail-ob0-f178.google.com Received: from [209.85.214.178] ([209.85.214.178:34377] helo=mail-ob0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/17-31470-56C74555 for ; Thu, 14 May 2015 06:43:49 -0400 Received: by obfe9 with SMTP id e9so49935959obf.1 for ; Thu, 14 May 2015 03:43:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=NMLYG9MhTrtECA6SJ2CIhWoPJ2TrhJkNf61s8ORtv58=; b=LQdMjtmUSbjhsvi7vUP16/fNnJ3vthPcCsBW4IWrp0DHe+dr2Fl8m4F/D4FHYA8xwW p1LTSfnX2CE1Po/sQZIlw4SWH4z17kK+xC7l4nLJX+IBdC4c0AQLAmMf2ezP0BtLgF+t gSPBxtnayesowmNnxNxu964ucpsy1g3J/F41r3DTTnIyAPw8FEV5LBnW7jVWJ+btWKTi WNw5WJVJsy0VnXHoEknTOWxTMeaeQ8VHH1wrQNRVj36moWYuvFWMTjw/YooEAhJxJQPo OcgP/byQnc31Iv6U0I9eIlKfev4XBCLBA5M9hn+s932CoN9reJAlcI6x0nyF/gMpI+3Z NP/g== X-Received: by 10.60.123.83 with SMTP id ly19mr2917674oeb.13.1431600226788; Thu, 14 May 2015 03:43:46 -0700 (PDT) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.202.104.196 with HTTP; Thu, 14 May 2015 03:43:06 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 May 2015 19:43:06 +0900 X-Google-Sender-Auth: aHpCX__sj6NpJAEIJyHbDZcbTZg Message-ID: To: Nikita Popov Cc: Anthony Ferrara , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7b5d5498fa6a760516086640 Subject: Re: [PHP-DEV] PHP7 scalar type hint error bug? From: yohgaki@ohgaki.net (Yasuo Ohgaki) --047d7b5d5498fa6a760516086640 Content-Type: text/plain; charset=UTF-8 Hi Nikita, On Thu, May 14, 2015 at 6:51 PM, Nikita Popov wrote: > The output is a bit confusing: This will actually throw a TypeException, > it's just currently rendered like a fatal error (known issue, will have to > be resolved at some point). If you wrap your code with a catch > (TypeException $e) you'll be able to handle argument type errors - this > includes both errors for user typehints and for internal function types. Thanks again, It even worked on 3v4l http://3v4l.org/sp1C4 Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --047d7b5d5498fa6a760516086640--