Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95715 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56248 invoked from network); 7 Sep 2016 08:13:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Sep 2016 08:13:19 -0000 Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.46 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.215.46 mail-lf0-f46.google.com Received: from [209.85.215.46] ([209.85.215.46:33296] helo=mail-lf0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/D6-18051-D1CCFC75 for ; Wed, 07 Sep 2016 04:13:18 -0400 Received: by mail-lf0-f46.google.com with SMTP id h127so5169758lfh.0 for ; Wed, 07 Sep 2016 01:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7h32E0GsGIy7+k3xY6sgj2J80vfh/lviGMVBsX02b+Q=; b=aTWOFgak8O6fa+FC7+1U5p0cGtUDWmXnQJhHKeEXKURWNO+a9yKvER1iSRv5XbY9DX 3ATuYKx8RxX1LQZKNtowrUt0yyTY0vRuZZ7FHvPbqpk+sjKeSKImbFbmohW/Ohf8k2rf tRIiKykhWFhZeg5k1T6g3K0aYzY0G9jZ13l7BsZvi771M1EaUGSyGj9/1acSI+zqFcqt HP68mWzcFY79G595Mq9JqjFErDbNOS6sHAydonyzlZHv5xS7L4Gx4A2XwYzJBM5ptyg/ qga5MB/ZAqsvx3jb+aMRxfvA724IzKTvCYXPlcTArR0armOXJK20IGEjLLJsGa40mPTh kN9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7h32E0GsGIy7+k3xY6sgj2J80vfh/lviGMVBsX02b+Q=; b=OCZ5SaNYZ4ttLTm/IoLDTJRyHCPjutaxrzY9QKFRLoJ47hZsN/mPfUNMabSjWjQmgd xJwUyPBi83Lk3ArpJZWLnrjvjOZupHJ8Uez9uZM724+/84caF+ur0udRwmadkEQHCqKH 27JntQwcuVHhaWO2Z9R5wRqytlu4ByS2cNOQ2TYp6CJq4l31qc46buTvR2ajD9OCaKJl 5EN2L0176PqycDdTA12mDJyE9vfodhr3VcgmOJgubzfQA7TTggeyNl09Brome1cuHmbu 4JrgnNxF02M8N21cCLcKGhvCzK+7etKONUmV+Pv8/fZhebIqEsswNDgv2P1zmokBh049 /06w== X-Gm-Message-State: AE9vXwN6OYdA7/plClLTSdbFJGt+/uQ24uW+g4v9kMu0khxXlKqCScFen1JW4wm9KH5W9CpJBi/ILQdgg/wY7A== X-Received: by 10.25.154.10 with SMTP id c10mr11048609lfe.72.1473235993932; Wed, 07 Sep 2016 01:13:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 07 Sep 2016 08:13:03 +0000 Message-ID: To: Nicolas Grekas , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114736a216bbe3053be67cf3 Subject: Re: [PHP-DEV] Missing reflection info about strict types? From: leight@gmail.com (Leigh) --001a114736a216bbe3053be67cf3 Content-Type: text/plain; charset=UTF-8 On Mon, 5 Sep 2016 at 10:39 Nicolas Grekas wrote: > Hello, > > It looks like we miss a way to check by reflection if a function/method has > strict types enabled or not. > > We'd need to do this in Symfony to generate a file with concatenated > classes, but split "declare_strict=1" classes out so that they don't break > (because there is no way to create a single file that contains both strict > and non-strict classes unfortunately also). > > Would it be possible to expose some flavor of ZEND_ACC_STRICT_TYPES to > userland? > > Regards, > Nicolas > As an aside, would you guys like to see a strict types indicator in debug backtraces? I wrote a small patch for it back during development of 7, and then forgot about it. https://github.com/lt/php-src/commit/ac1171a81df814ad0042ef5989010bfe7d3e1652 --001a114736a216bbe3053be67cf3--