Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99837 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88061 invoked from network); 11 Jul 2017 16:44:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2017 16:44:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.220.177 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.220.177 mail-qk0-f177.google.com Received: from [209.85.220.177] ([209.85.220.177:34667] helo=mail-qk0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/C8-47109-E6005695 for ; Tue, 11 Jul 2017 12:44:31 -0400 Received: by mail-qk0-f177.google.com with SMTP id d78so8205114qkb.1 for ; Tue, 11 Jul 2017 09:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beberlei-de.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1CSgkeXdsN2zMbLYbV5UVBLQAXGSlfJBFVTPeBPhZTg=; b=pboEYe/cmqbuq/tR/XP4yXlDYH+HeO3U7fLRYD/1m8hpYAM9+hC3A4dj6eits0w5ry B2CPyMTH941+HaahRDgamxSJSoQ6PGrTe3tCwaKOeGTY+kqTE59CsJRRVBwFtSlxwDs0 DzyM4DWesKV6uNQPM+aJiOMPMWEFjs2IMsmTBKHvptKpyUQCqChGJuDqE4OBOOILlSDx zVaN3rmuEaUXK2FY8Y7R1aYCB70TQheyPL7kN/D1Ioo5/S8dlcfPWkBpMhfu9S53eejL ZFxzrLaMyDWXbikZhHgH1DCw6tlLAHvH9r2CPg+Oqd6w7bscpnPQjNsOD1jD+T30RQIm 3NIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1CSgkeXdsN2zMbLYbV5UVBLQAXGSlfJBFVTPeBPhZTg=; b=fzYvRuqAlzvSdwyLppMim+d185YaT4ETfsYdYv12I46wb7Bmh2GWgGBTVpFVByBhUu p9OZjRKi5+RWydtLeUlyw+e2HHifoukBbKr3MBZWA4VN4J0XYzEg85nxy5UL68KB204q 7v0MByWrDVNGEr7gOlOT0Ldo9xQDAu2n3qgoGFXYnfJq8LLiYdJ8pNlP1yxigGaSRx9H T5Jr5eBd+cMWHqFEYLrKesiKnGcRyqnnwC7hbgib3+F3ygmO+NwvFW0vM1sek35Pfpjs i4MpzxMFgabKrRw5cTU342yTbc9AC2gMmvlFRdOwqjYBjY1cmrFWT3EV/BStbNFt1wbl udJQ== X-Gm-Message-State: AIVw110Rt76hXYdbTEQuDE7NNZcVkjGWfMCg4MmdNNjYmAz25GbcG8mk rwghNF9CQsI9Cf3a6f5dvhAH49zmwvIA X-Received: by 10.55.153.129 with SMTP id b123mr819163qke.162.1499791467504; Tue, 11 Jul 2017 09:44:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.144 with HTTP; Tue, 11 Jul 2017 09:44:27 -0700 (PDT) X-Originating-IP: [2003:e5:bbc5:6900:4dd:d4d5:6525:f1a1] In-Reply-To: References: Date: Tue, 11 Jul 2017 18:44:27 +0200 Message-ID: To: Nikita Popov Cc: Marco Pivetta , tyson andre , PHP Internals List , Stanislav Malyshev , =?UTF-8?Q?Micha=C5=82_Brzuchalski?= Content-Type: multipart/alternative; boundary="94eb2c0812fea89c8805540d692f" Subject: Re: [PHP-DEV] Exposing object handles to userland From: kontakt@beberlei.de (Benjamin Eberlei) --94eb2c0812fea89c8805540d692f Content-Type: text/plain; charset="UTF-8" On Tue, Jul 11, 2017 at 12:21 PM, Nikita Popov wrote: > On Tue, Jul 11, 2017 at 11:52 AM, Marco Pivetta > wrote: > > > Asking here, since it's not clear to me: is this a good/fitting > > replacement for `spl_object_hash()`? > > > > On 11 Jul 2017 7:00 AM, "tyson andre" wrote: > > > >> >> How long should I wait to see if there are objections before creating > >> a pull request? > >> >AFAIK you can create PR any time. > >> > >> I created a PR implementing spl_object_id(object $o) : int several days > >> ago, > >> at https://github.com/php/php-src/pull/2611 > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > Yes. spl_object_id() provides the same guarantees as spl_object_hash() -- > but is much faster and has a more compact output (an integer instead of an > iirc 32 byte string). > Just to clarify, that means object ids are still re-used between objects if one gets destroyed? The initial bug report was about creating a second function that solves this problem. > > Nikita > --94eb2c0812fea89c8805540d692f--