Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120939 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 25031 invoked from network); 29 Aug 2023 00:46:32 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Aug 2023 00:46:32 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 02CB7180083 for ; Mon, 28 Aug 2023 17:46:32 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS9370 160.16.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 28 Aug 2023 17:46:31 -0700 (PDT) Received: from smtpclient.apple (softbank060109141104.bbtec.net [60.109.141.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id 97FC440200 for ; Tue, 29 Aug 2023 09:46:29 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1693269989; bh=ubeRo31Ma34mcTNKyMHbCfWbegdwDfnElOx7MCbym9Q=; h=From:Subject:Date:To:From; b=UOha53RQBxIuyvUKuJKFYgatEk9DZ3ttDyycvolyXWPR/qY5XpTGT2/Quu4ry+qtS TW7E+HInGo0yX/5P7U1Iaw0SnZTq2fqPmtNJtw+BYqS2cMHXJT5pK61PUGOyVUVKN+ rPxWuRAjxkwgbguyze+MCJzlXeKIGKVE5HY++Z9Y= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Message-ID: <4406C50C-18FF-4F20-BA7B-206E86610CCC@sakiot.com> Date: Tue, 29 Aug 2023 09:46:18 +0900 To: internals@lists.php.net X-Mailer: Apple Mail (2.3731.700.6) Subject: Apply strict_types to internal functions From: saki@sakiot.com (Saki Takamachi) Hello. I=E2=80=99m Saki Takamachi. Inspired by the issue below, I'm thinking of proposing this RFC. https://github.com/php/php-src/issues/12055 As the documentation below states, PHP's internal functions currently = ignore strict_types. = https://www.php.net/manual/en/language.types.declarations.php#language.typ= es.declarations.strict I think the current spec is not intuitive, so I propose changing the behavior of the macro = ZEND_ARG_USES_STRICT_TYPES() to allow internal functions to accept = strict_types. I plan to make changes in zend_compile.h and zend_compile.c and do the = changes myself, I haven't written any tests yet, but I'm thinking about = making changes like this. https://github.com/SakiTakamachi/php-src/pull/1 As per How To Create an RFC, I will first try to gauge response to this = proposal on the mailing list. Thank you Saki Takamachi=