Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58868 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53749 invoked from network); 12 Mar 2012 11:39:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2012 11:39:08 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:34999] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/35-20445-B50ED5F4 for ; Mon, 12 Mar 2012 06:39:08 -0500 Received: by wibhm17 with SMTP id hm17so3184142wib.11 for ; Mon, 12 Mar 2012 04:39:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Mq275+3ndkKELW4KUBRZtz/GLlrR9Q1W/2fLloIwcfc=; b=CBnIT+LuttEAuyTMJnTysveLWa8ozYa4HHfwgzFTD1Sr6VmCo61eFXM1nYlDdmB4is Fxr0XzdG1rXzmtFt3OBG1iC/DGQh+WaJfe4hWt5Rn6U804df1x2aHJA3/em9WNwxDRLF efEnTRqL28+Z7Fy9ZIFoHTmFKIlKYPacHElZDwFp9FQ1250yUy6tu/c6ee0oI8rvHpbM YZ+xcrgFnkrtphI9VWCTo76zf11QvT4n7rtKQRpEm+IWNZEYFon1mKEghX4m1MihI/Qa V6tJqzn7ntetk7RhwNktuooFQXkXjYJRFcgyU5Wv6P0VBzpRsXZO31cVEWfs0srtvryx kV7Q== Received: by 10.180.93.4 with SMTP id cq4mr26287637wib.21.1331552344141; Mon, 12 Mar 2012 04:39:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.117.1 with HTTP; Mon, 12 Mar 2012 04:38:44 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Mar 2012 13:38:44 +0200 Message-ID: To: Anthony Ferrara Cc: Tjerk Meesters , Lazare Inepologlou , Simon Schick , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=f46d043c806878ef6c04bb0a30a3 Subject: Re: [PHP-DEV] [POC - Patch] Scalar Type Hinting - A-La zend_parse_parameters From: arvids.godjuks@gmail.com (Arvids Godjuks) --f46d043c806878ef6c04bb0a30a3 Content-Type: text/plain; charset=UTF-8 > > > > What is consistent and exists on the internal language layer > > not necessarily good for the user-land. I'm kind'a surprised no one > thought > > of that. > > As I said I can live with the throwing notices and warnings (and not > > E_RECOVERABLE_ERROR as I personally wanted), but returning false even not > > trying to run the function is just a bad idea all over the place. > > I'm confused. Do you not want E_RECOVERABLE_ERROR for parameter > failures? Or do you, but could live with lesser as well? I didn't > quite get that part... > > Anthony > Hi Anthony. Yea, that part looks confusing. What I wanted to say is that I would like to get E_RECOVERABLE_ERROR and I was voicing my opinion on that earlier in the threads. But I could live with E_WARNING and E_NOTICE if community decides it to be less strict - I will clean up my code not to throw a single notice (and because I use Yii - it's by default converts any E_* raised to a fatal error and throws HTTP 500 error via exceptions). In my 8 years of active PHP development I learned that some strictness in deep core code of the project is a good thing and erroring the hell out there makes perfect sense. It's a delicate balance and I never apply it to the level that does actual communication with the outside world. --f46d043c806878ef6c04bb0a30a3--