Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102206 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26888 invoked from network); 9 Jun 2018 10:04:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Jun 2018 10:04:56 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain zend.com from 104.47.38.106 cause and error) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 104.47.38.106 mail-bl2nam02on0106.outbound.protection.outlook.com Received: from [104.47.38.106] ([104.47.38.106:39872] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/6D-62758-646AB1B5 for ; Sat, 09 Jun 2018 06:04:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DITFmAVrrJGPPeEvD8EwEwTHPffouoE7CyGZtyKVNbc=; b=O24tH/seCAupbd7it7xMMgIMEH9LLVPOQSghMMUN1FXlurxRW677iDckdy4xUHd2njos+LXA/ODvQBgZMIl/dj7SfDlGwvMZ4oUSDlWe/BFP8SIIFKJ8Op301aQminesGWQtRS+lhvQJxc7v7BMGc+Af4uH2A/KCt0+IrbKa7e0= Received: from BN6PR02MB3234.namprd02.prod.outlook.com (10.161.152.32) by BN6PR02MB2833.namprd02.prod.outlook.com (10.175.96.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.16; Sat, 9 Jun 2018 10:03:34 +0000 Received: from BN6PR02MB3234.namprd02.prod.outlook.com ([fe80::f998:3b08:a438:5ba6]) by BN6PR02MB3234.namprd02.prod.outlook.com ([fe80::f998:3b08:a438:5ba6%4]) with mapi id 15.20.0841.018; Sat, 9 Jun 2018 10:03:34 +0000 To: Gabriel Caruso , PHP Internals Thread-Topic: [PHP-DEV] [VOTE] Make compact function reports undefined passed variables Thread-Index: AQHT/ZYw7pWWMsYltk+YQWt97OKmGKRXtM8V Date: Sat, 9 Jun 2018 10:03:33 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-originating-ip: [212.232.72.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR02MB2833;7:GdtLo0+iawjfUWXmhhhMidssf8geaVMjCm0CENh3RpoTZmzlzPbo/MwPyyhc8fvcNzi2B+3idcCAFQv8OBSoONadFV2PC2aCOllpK0iM8waOr4o77zxjsHblb5Pzy8lhp3vV8Ha1QO4O9TkJJldwLs6udoFr/5tsdT1bvVh9INICuyzr8vFRW6vxZ1KaszK0KbuNNgt8LQUMp417ZshYJAlOiS8yQvvtnADvB3AKIk00h1F/23tFnUrxTU1ZoOFz x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BN6PR02MB2833; x-ms-traffictypediagnostic: BN6PR02MB2833: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(20558992708506)(85827821059158); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:BN6PR02MB2833;BCL:0;PCL:0;RULEID:;SRVR:BN6PR02MB2833; x-forefront-prvs: 06989017E3 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(39380400002)(346002)(39830400003)(366004)(396003)(189003)(199004)(606006)(9686003)(6306002)(54896002)(106356001)(6436002)(186003)(966005)(26005)(76176011)(102836004)(11346002)(446003)(6506007)(53546011)(236005)(59450400001)(2906002)(3846002)(6116002)(19627405001)(8676002)(86362001)(81166006)(81156014)(55016002)(2900100001)(105586002)(97736004)(3280700002)(3660700001)(7736002)(8936002)(5660300001)(110136005)(99286004)(7696005)(68736007)(14454004)(316002)(229853002)(5250100002)(74316002)(53936002)(33656002)(478600001)(486006)(6606003)(476003)(39060400002)(25786009)(6246003)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR02MB2833;H:BN6PR02MB3234.namprd02.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: e1gK3VSQRafeS3S6nID4jm71sOo3+PY86Qrxg+xfVbuG1n2vuQ5vp8WPGfHoS4HFJnhu1BamnP7Nw0vh553ev7mgLi7kea6VbJPphF3nvIRQILmBYUjlsnlv1/CnmQb5BGKByXhR6D0q7V9qcIeIbJOnThVUqzY0e+XlS5qTmpHiqyHFztH0pvsA4SvyTuLg spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BN6PR02MB323425E29746D9C173CF67A0BF7A0BN6PR02MB3234namp_" MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 5f8e21cb-c2ec-4919-49f3-08d5cdf042db X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f8e21cb-c2ec-4919-49f3-08d5cdf042db X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jun 2018 10:03:33.9055 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB2833 Subject: Re: [PHP-DEV] [VOTE] Make compact function reports undefined passed variables From: dmitry@zend.com (Dmitry Stogov) --_000_BN6PR02MB323425E29746D9C173CF67A0BF7A0BN6PR02MB3234namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Gabriel, compact(), extract(), parse_str() (with 1 argument) and get_defined_vars() = are bad functions, because they access local variables indirectly. They might be considered to be removed in the next major PHP version, despi= te of this fix. Thanks. Dmitry. ________________________________ From: Gabriel Caruso Sent: Wednesday, June 6, 2018 3:58:24 PM To: PHP Internals Subject: [PHP-DEV] [VOTE] Make compact function reports undefined passed va= riables Hello there. I'd like to announce that I've opened the RFC for voting until 06/18. https://wiki.php.net/rfc/compact Thanks. -- Gabriel Caruso --_000_BN6PR02MB323425E29746D9C173CF67A0BF7A0BN6PR02MB3234namp_--