Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112491 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 97706 invoked from network); 12 Dec 2020 17:20:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Dec 2020 17:20:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DA2F71804C4 for ; Sat, 12 Dec 2020 08:50:52 -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=0.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10olkn2011.outbound.protection.outlook.com [40.92.42.11]) (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 ; Sat, 12 Dec 2020 08:50:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wgxomvq2CR9Ku6xb50JVwLaiOCX75m/xhzdQlflzy6EkOs2RXJZ8VVpaagGpgbD1kNMti52MnafnEfk9J6JniVphAKzNyd7EtxEf6nJAyfWAmLB+fRtSCZQLshX9Co8I9k81P2DdOzCMlO/OMx2ixsxF8p4eiW0fEgq/bezWF59/XIXtBDFp3AwEqtpJghxhL1+axef6IOma6vMBQ55rvNBtdZziDjBs3xSZYoIyzqKJhim1va97U3pBGen+KAd8Xp4XEw4a1FKzanK/i6ANZdLoQy7p7GK3YslVp1LMaUhtXduKxck9dHAU1GEuQU2rCb6QpFI7n+HlKWv3ZJSFLA== 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=W+9gv7aJRB0L9Y1Im6NMlHq9S4V4Vyulsb+91SiKGG8=; b=WJhIAVLIuc/7mGNSnMQT0RHOiCBn5VBcl57JygiXeeBA1Xj7CkSS4qXCUKMir0bfXrlcuExlr6lZ14SdSyKZDaGm33X7Ped68p+uoT2Eb8lU0OgJXmqKSJbdpVAtc0KPWrzy9Oz4xEyi2ikKMAYHBVfniQw+TQ+hzYvySWByRVPssnUgY5ggqWQ0gc0OSElxS9gP0TS+DyQHpu2BLK4E2VdveILcoe6oNrzqmY6YK4puAXELslQ616kldDDifzrm8mSdmhvfZpotrKSrXajIZIQPPkIoBw71x3GMoWNR0g9SSWEvlOQdWBmX8tgea80slm56DNCgjel2ZBfSfK7fhA== 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=W+9gv7aJRB0L9Y1Im6NMlHq9S4V4Vyulsb+91SiKGG8=; b=hnMyksqa4XG/3C7Sjn032gZNuxcLZzFWAQLxmZ/V2UuD/NQSKP7mJmfgOvr9hbSWKgP8fZJi9tQzGyXvyeVT+ISFWT8RA3BhIIUMNxnErDbmLVytCDwboJXoLHGsgxYRJAEbCvrQksWstUG9nrZ9hnngif1QZRGQVznjbFf0BxioMa6y3Lx85jVl13QEVfRtFHuTTVEE75a1HT0ohu23Om1aKchGu1DO6SBUVMyi9Ge8slR9NGhwUSFBxJgbmFeiMm5UbAsOFcKU+yXLItvnz3/A5tO3u8iz4tEc5xC/pj9DfNZDxlfx3fCAr0OuethVM1xT9jm9CINU2fkpAfSgUg== Received: from BN7NAM10FT039.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e8f::49) by BN7NAM10HT227.eop-nam10.prod.protection.outlook.com (2a01:111:e400:7e8f::92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12; Sat, 12 Dec 2020 16:50:49 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com (2a01:111:e400:7e8f::4d) by BN7NAM10FT039.mail.protection.outlook.com (2a01:111:e400:7e8f::102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Sat, 12 Dec 2020 16:50:49 +0000 Received: from DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::d99c:15a8:f595:d00]) by DM6PR07MB6618.namprd07.prod.outlook.com ([fe80::d99c:15a8:f595:d00%7]) with mapi id 15.20.3654.018; Sat, 12 Dec 2020 16:50:49 +0000 To: =?Windows-1252?B?gJYglGuUaw==?= , "internals@lists.php.net" Thread-Topic: [rfc:direct-execution-opcode] Whether need __FILE__ the value of the file to replace the compiled opcode file path Thread-Index: AQHWzvEcAaUueSZyfk+A4CVUd1pPoKnzndTr Date: Sat, 12 Dec 2020 16:50:49 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-CA, en-US Content-Language: en-CA X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:B58799ABF5BA952370099C1516F4BE90EEA76181C1B5546DCD588850E99976E5;UpperCasedChecksum:8EE386D48E49727CA6E99AD90529B7F4047972E1C569BCDA226308509954FA10;SizeAsReceived:7268;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [LBADAyDYHmKqoT3l3Sc0qEvfYC4hoHUru3iV2whA94vTEkuwANlEm03qh4mSIsO9] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: bd4a1705-2523-4be4-d2fc-08d89ebe1492 x-ms-traffictypediagnostic: BN7NAM10HT227: x-ms-exchange-minimumurldomainage: externals.io#1623 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PhQOuoC+2rZmOJy8TYcwEuvubLZlGXx9ihSibD4XxG78blxaQq82xxY7+jIaDjTst115kfEtcilCrLUQ9ZJDnE5ZDrgSYZwZIKyniXu/HKzFcuVtl1JcRntO6Q5K5ahlr+omswUyG//A7nBqOGv4Pt3pnlF8KKuvzMu+BFM+TwYQ3fDiCscE92sF+5ioC3jGeAhtsdnMuKOegxsKQ8k4ROMZ3o2Gf/Dfzq0U7zDCtyvUilW1EuPNq1IQYylyhrN5 x-ms-exchange-antispam-messagedata: TULhz25H7Xi80jVyNfJo1PQm/ORsqVFo2XOhVCAA2guHOynAQMcZZQaUO6NMMFPr28HBaUjGTjqySNkNfFA4qAxUn/MHje/kqoklqOEw4uCyrgxPXNTVbjxKkyw9wgUT22wsOOm3QLUHoOohYMHRJaiWzK84UE1YYI4I+GTswnYw41HNYLZVbB8g282V8idp1blXF1RyVi3ZjfPc3cB+qg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: BN7NAM10FT039.eop-nam10.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: bd4a1705-2523-4be4-d2fc-08d89ebe1492 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2020 16:50:49.7537 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7NAM10HT227 Subject: Re: [rfc:direct-execution-opcode] Whether need __FILE__ the value of the file to replace the compiled opcode file path From: tysonandre775@hotmail.com (tyson andre) Hi=A0Chopins Xiao,=0A= =0A= Some comments on https://wiki.php.net/rfc/direct-execution-opcode=0A= =0A= 1) This should be marked as "Status: Under Discussion" in the RFC document = itself, not draft?=0A= 2) https://wiki.php.net/rfc/howto states:=0A= =0A= > 5. Listen to the feedback, and try to answer/resolve all questions.=0A= > **Update your RFC to document all the issues and discussions.=0A= > Cover both the positive and negative arguments.** Put the RFC URL into= all your replies.=0A= =0A= The RFC guidelines mention this should document the negative arguments,=0A= e.g. as a Discussion section with quotes of the negative arguments (argumen= ts against the RFC)=0A= and positive arguments.=0A= =0A= I'd recommend linking to the discussions on the mailing list, as there had = been a lot of discussion there,=0A= e.g. as a References section at the end of the document=0A= https://externals.io/message/112482 and https://externals.io/message/11196= 5 and https://externals.io/message/111979=0A= =0A= ----=0A= =0A= https://wiki.php.net/rfc/direct-execution-opcode#backward_incompatible_chan= ges was also unclear to me=0A= =0A= > Magic constant `__FILE__` is the absolute path to the compiled source fil= e, not the path to the opcode file that is currently executing=0A= =0A= "to the compiled source file" should be clarified to say something like "to= the compiled source file for the packager (not the end user)"=0A= =0A= (e.g. `require_once __DIR__ . '/other.php'` would get converted to the opco= de `INCLUDE_OR_EVAL (require_once) string("/home/packagerusername/other.php= ")`=0A= even with optimizations disabled, which would be unexpected for the package= r and the end user)=0A= =0A= I don't think there are any problems with `__LINE__`, that's the line numbe= r within the file, and is unchanged by the path to the file.=0A= =0A= Regards,=0A= - Tyson=