Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:95635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94126 invoked from network); 5 Sep 2016 09:45:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2016 09:45:51 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.217 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.217 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.217] ([81.169.146.217:21102] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/0B-45301-DCE3DC75 for ; Mon, 05 Sep 2016 05:45:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1473068747; l=2552; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=mUPdeFN4wm8gOgGxEAHmfWYFuBhlB4LuCHVFICKMbBM=; b=lWhbitXcn3NAfwCP0bI2l0dSRkwwtxFm4e0jfgOQN0KUGJMheNlbsxmbZe+3f7XHGUq TRVuvdjes7YJ92CFWBTM1lCx9JsZYWviYTtzkWohaS6Fe0Sg67bvDTY6XwGs4R5ZqRaJK ZNzOo0fvpgfodSsXrziUyl/25mFGGkkpqgU= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3U6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f46.google.com ([74.125.82.46]) by smtp.strato.de (RZmta 38.13 AUTH) with ESMTPSA id j08172s859jlssX (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Mon, 5 Sep 2016 11:45:47 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id b187so11198608wme.1 for ; Mon, 05 Sep 2016 02:45:46 -0700 (PDT) X-Gm-Message-State: AE9vXwN1b+kx39OaF5PUWG2mzcIzoGUfyKqEPQJyxV6J1aJvoqMExTq0+LeF7L0DsbNJwRHcxtlSnYlOVPyAIg== X-Received: by 10.28.139.144 with SMTP id n138mr13882414wmd.71.1473068746885; Mon, 05 Sep 2016 02:45:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.180.7 with HTTP; Mon, 5 Sep 2016 02:45:46 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Sep 2016 11:45:46 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Nicolas Grekas Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11443d4c6359ae053bbf8be0 Subject: Re: [PHP-DEV] Missing reflection info about strict types? From: me@kelunik.com (Niklas Keller) --001a11443d4c6359ae053bbf8be0 Content-Type: text/plain; charset=UTF-8 2016-09-05 11:38 GMT+02:00 Nicolas Grekas : > Hello, > > It looks like we miss a way to check by reflection if a function/method has > strict types enabled or not. > This isn't bound to functions / methods and can't be reflected. > 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). > declare_strict=1 affects only calls, not definitions. It matters in the file that does the call, not the file where it is defined. > Would it be possible to expose some flavor of ZEND_ACC_STRICT_TYPES to > userland? > > Regards, > Nicolas > --001a11443d4c6359ae053bbf8be0--