Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108238 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 60330 invoked from network); 25 Jan 2020 05:27:51 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Jan 2020 05:27:51 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id F363F1804D1 for ; Fri, 24 Jan 2020 19:37:24 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS8075 40.64.0.0/10 X-Spam-Virus: No X-Envelope-From: Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2086.outbound.protection.outlook.com [40.92.41.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 24 Jan 2020 19:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WPTKH8acFotyhbg2UCuknj5fZ/PCDSIvMmzEuSyw7ITNZv9wa8zcluPo6q4sieoP4X9JwtiiMq730WYgTboGlk08eX3G/JFceja42mYM7m95QZND62zj/clM89hlxz1MxUphrFWAVXU7ZhswqL+IjjuQ4S/5CLbdHmDbmPtKIqP6ePa37zPtQzq4uCdjfuzF2v3ksio+X3eCi2EhMpVJ3U7q/VZ0ITHp/rCZJAfVLtYjMKFmg+gQmMjERAvFsvbGp6x34QvdQ5zZhSh+9kLbufRTsYRNRTjz1HT1gA7yexRyair6SsHuU22XewATdkEh6n7yn/Eu07QV4Z8MxB6iuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ZRsQTMNULoNpQfzMlRkGiokUuouHs58LJmJ/LS03OQ=; b=QgJJi6nDaSMSqSwO0gO2n+myZn/ZiElJRoMpykaQGyV4jGnCpzFpjc1hYnPnopYNcnpJEUGWXA5s8+avvZsqBa+ER5lEDzpNz14YkamXIHliWnZL6uCOlFdLJtrkal+ALp96RKJ0miohSwXd/NlURsQlKRfnVuHoOXJy1e+suPdlyTrALPPKcYXjwmwHUW+T0VTQYIfZWmHGyI0XAA1A/6Gdufzu0VszaoNNLKsbzi1UahLf8nWuzXfuil/IIzJ05RVc9wvrH7O8rAft+1DXmNwVARA2wfj7KpisyTdenEeZA8Iiww68OKV1pmUYdTq1HNZ4CeuMYQvW09fx54vvnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ZRsQTMNULoNpQfzMlRkGiokUuouHs58LJmJ/LS03OQ=; b=LCYU2IcV+y0uGHy/5ET+w1j3+YdodptWe5+VbC1OrUMYviic0LS0GrGIreuUyIw8qWo7kslR91LEEx+3c0is6c/PsqV/HJYN+uL5SJQi8vQUHh58iqXGsiHao8/cuo9hi/sBpXD4l98kyB8CXNI2e78LgoKdqqsNP6bLi89i4o6++GIsFu4ONSoi+CkKxJsU1F5Nj4Cttxae+GOfUDQ79u88Wv6s8yJYhaLxdgUk3FHUesRK5vvkZTopdhcNkphF6TJpfQaNtmVbGRYKiINZYdzp7wFvMzVCxqp5waNacWMzTNR5SAD4f+DyHOuSAadGNoyjXH6Rmx+tM0QwdOpt5A== Received: from MW2NAM10FT010.eop-nam10.prod.protection.outlook.com (10.13.154.56) by MW2NAM10HT203.eop-nam10.prod.protection.outlook.com (10.13.155.190) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.18; Sat, 25 Jan 2020 03:37:22 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com (10.13.154.59) by MW2NAM10FT010.mail.protection.outlook.com (10.13.155.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.18 via Frontend Transport; Sat, 25 Jan 2020 03:37:22 +0000 Received: from DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::29e3:53bf:163e:5beb]) by DM5PR07MB3067.namprd07.prod.outlook.com ([fe80::29e3:53bf:163e:5beb%3]) with mapi id 15.20.2644.028; Sat, 25 Jan 2020 03:37:22 +0000 To: Mike Schinkel , PHP internals Thread-Topic: [PHP-DEV] Initializing constants once, with code? Thread-Index: AQHVwZMGVGGpEwzQ00OYU/q+965QOqfcl9gCgB5EO+Q= Date: Sat, 25 Jan 2020 03:37:22 +0000 Message-ID: References: <5e0d723f.1c69fb81.e2ae8.24e2SMTPIN_ADDED_MISSING@mx.google.com>,<74F2DBFC-E63C-428C-A37F-2D0CEE15AD0F@newclarity.net>, In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:B488BAFC68115D0301547DFB0F0AFCA84C27345248B595C96CCCF14D1C796193;UpperCasedChecksum:2AF376A11B47F3C659FBE327C954EC8CA0F66A995A7C7CB8BBE3D60E51358338;SizeAsReceived:7126;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [0OJetCm47C7jJIhg14ooa9vVJKebMrhY] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: a4a0e3c0-42a0-4e78-7d1a-08d7a147e38c x-ms-traffictypediagnostic: MW2NAM10HT203: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ySXJvDj7HZS5j69tR74PiSR3z4tLLEdZj2qcPeeYIywCYywae6lHF7qY/EC/KR6vpXw28bTvZo7To2oORYyHI7RNMmPiA+pyJlFdtDIcU96P9zNO6oF9TWsgEFXW8D074FpMd/5fPEKO4YVhF72q1tWxhVCLU8Bv/FrDYsoB82QZgOHu/qo2iDsbg73nxr4ah58KxIcdhc1Y5gsQ+fcnl9ttBFMH8KxIbFIrw4Z/KPc= x-ms-exchange-antispam-messagedata: 7xmoCTJVULmRtrTkAIJ6fZQO96FpbhVOn5A3JdD/jGc0gVU+0ryNdDDuAPox484KNs1XFENAuJi0xVXlVBFfdUsaw7Us88qgSpjroB2iM0K6sxLFZJTG91bASPEomqhP8TkMj2JqyF5dDPAM4BegWA== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: a4a0e3c0-42a0-4e78-7d1a-08d7a147e38c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jan 2020 03:37:22.7330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2NAM10HT203 Subject: Re: [PHP-DEV] Initializing constants once, with code? From: tysonandre775@hotmail.com (tyson andre) I've also put together a *different* proof of concept adding support for na= med calls of global functions=0A= (and only that, no other new allowed types of expressions) from within the = expressions of constants.=0A= (i.e. global constants, class constants, and parameter defaults).=0A= =0A= I was considering putting together an RFC to allow function calls=0A= once I'm finished implementing that,=0A= and if no major unfixable issues are identified.=0A= =0A= https://github.com/TysonAndre/php-src/pull/12 allows expressions such as:= =0A= =0A=