Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10448 invoked from network); 11 Jul 2017 20:56:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2017 20:56:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=tysonandre775@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tysonandre775@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 40.92.3.73 as permitted sender) X-PHP-List-Original-Sender: tysonandre775@hotmail.com X-Host-Fingerprint: 40.92.3.73 mail-oln040092003073.outbound.protection.outlook.com Received: from [40.92.3.73] ([40.92.3.73:50084] helo=NAM02-BL2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/F0-01782-78B35695 for ; Tue, 11 Jul 2017 16:56:40 -0400 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; bh=QsRo7CdkasIARlJGvO8WpFxRDhOwIWiacPpv6sT03Ag=; b=T2kOiMxBvB7oqWmiyZTbrMJZTxkO153F2OKqJwXy8OQE8H5De1RvYHJ/tk5DDbT941zWx/ccrwAr2QUNpAF7TAlFixWy6VwLLejPiC5t0ENxJZfo3T2ZD1mtPAWVzBUqLxZbimeBcOd0lA8gyHhcGF/pPiGOnxOXaKP4KcjcnhJGhBuVeHODA35DfA+4sH2XCSWsIH0pidlkgIap2iYyHbdavQoKQCjUnppVePx8SvHjtcXpHZaeQ7VUgH7J2FzOsxkl0v7AP5AwJdi5ttIAFPXPPPZNByjP6Qj9s831MHutigVSU8QKMSzb1AHwdVGA8TxM9H5x+Zef0eVOqMuxYQ== Received: from SN1NAM02FT024.eop-nam02.prod.protection.outlook.com (10.152.72.57) by SN1NAM02HT197.eop-nam02.prod.protection.outlook.com (10.152.73.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1220.9; Tue, 11 Jul 2017 20:56:36 +0000 Received: from CO2PR07MB569.namprd07.prod.outlook.com (10.152.72.58) by SN1NAM02FT024.mail.protection.outlook.com (10.152.72.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.9 via Frontend Transport; Tue, 11 Jul 2017 20:56:36 +0000 Received: from CO2PR07MB569.namprd07.prod.outlook.com ([10.141.230.15]) by CO2PR07MB569.namprd07.prod.outlook.com ([10.141.230.15]) with mapi id 15.01.1240.020; Tue, 11 Jul 2017 20:56:37 +0000 To: PHP Internals List CC: Marco Pivetta , Stanislav Malyshev , =?iso-8859-2?Q?Micha=B3_Brzuchalski?= , Nikita Popov , "Benjamin Eberlei" Thread-Topic: [PHP-DEV] Exposing object handles to userland Thread-Index: AQHS9R30z1+UtSjDnkKzM9jOpTbxI6JE5cQAgADImICAAJRMz4AAGkIAgAe8nuCAAFL/AIAACD4AgABq6oCAAEPhmQ== Date: Tue, 11 Jul 2017 20:56:36 +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: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:93DF066F0CEF358A8DF7BE42FE5DFFC0C9577F0DFC3E929F4F5F0DC21C6F83E8;UpperCasedChecksum:548A947C8B829B9319E0002E2C038E9A5D6DAD9CB052C25C8ED252C073B6942B;SizeAsReceived:8112;Count:46 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [o8XtH9XJrX7w6tUHMMAWUtoiitd/xXTF] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1NAM02HT197;7:XY2Rb7Nxjw1IB8pRU1tp4MI3dygtY8GQVXeS+k8eAlV+N/LJTyBoGEI+jeq07UqQ7UNLNYJ0ENkbHpSp9NkoLjz893KZyz1Y2HmKk1g3qNc4oMI6FFsp/72rb6vV8Qy6sQlVIEE06UUC/i64mEARzPKYnhm8aQ64iN5j97z4owIaOHlqey7hCGd5oUaBNXNA97dzUbK5uzAj0/V2TUlzZVhi/EdtHqEgfHIcbzXwwC1abuOpqVzWB+XWcnhJT0hpEgp7PNXKPoSkQ2BdqyTGY4ggdhpeqfOFQzDbxBRjafFLVVG4NIytHT5e2lHgF2jTgbkVoAIUMWBAiTAHsHM1mIui+jQq1wO+l7/wrGSxQgUN0sgEliKc+64oIPyh1UYOdqpH3CeFNOLn2LJIHn/FDWSrU3NjGWPTqB9tTKjE5xvZ9tNW31Uav8nx/6EMOSJiF7qt+7oNyNjCKths9kb27Aro1zL3bi6zJkWy82eINefn5Im8IaZNC2wRx6ncEdKGw7XRPAWdfRk6RcoPI95nDNi14h9MmaXifVsptGijMbVZB30gJSFNh/omEzJ1w8fdHWLvfuZda4p1ZSqKBWJvTEWA8sqKTo1l5pqxmVkVD9Vw3hDM3Jn+R9vRO5/4q9NpwmtxoOHh8Xj873mtlttdJUGlB88d149izXdbg7WWvPBwmlES4MWkIlrKajxl7OJ8B0ibBdx7+XFWKEKA+HgH+Tw5jdVBxJYi1j2PubzentxcShuTKD7rTTW8+K533xDUetGN+3JYMyf1R9jBSAY/cw== x-incomingheadercount: 46 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:SN1NAM02HT197;H:CO2PR07MB569.namprd07.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 1f4d1a1d-5e26-48f4-7465-08d4c89f522b x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1601125374)(1603101448)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SN1NAM02HT197; x-ms-traffictypediagnostic: SN1NAM02HT197: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:SN1NAM02HT197;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1NAM02HT197; x-forefront-prvs: 0365C0E14B spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Jul 2017 20:56:36.7435 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1NAM02HT197 Subject: Re: [PHP-DEV] Exposing object handles to userland From: tysonandre775@hotmail.com (tyson andre) > Just to clarify, that means object ids are still re-used between > objects if one gets destroyed?=20 > The initial bug report was about creating a second function that solves t= his problem.=A0 =20 Correct. This is intended to return the object handles. The most recent discussion from 2015 was only about object handles. An intended side effect is that object ids are re-used, the same way spl_ob= ject_hash is reused. - i.e. this is not intended to solve https://bugs.php.net/bug.php?id=3D5265= 7 , and NEWS should not link to that bug id. Having unique integers wouldn't work as an integer in long runs of processe= s 32-bit builds - After ~4 billion objects were constructed, the 32-bit integer would be re= used. As for a globally unique object id (let's call that spl_object_uuid), I don't think it'll ever get included. I also don't have any need for it. - It would require adding an additional field to zend_object, which would hurt performance and increase overall memory usage=20 (e.g. increasing 64-bit integer) - No other programming languages I'm aware of have that=20 (globally unique object id, even after object is garbage collected) as a native feature.=