Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63875 invoked from network); 11 Jul 2017 10:21:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2017 10:21:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.46 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.46 mail-it0-f46.google.com Received: from [209.85.214.46] ([209.85.214.46:37933] helo=mail-it0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/36-47109-0C6A4695 for ; Tue, 11 Jul 2017 06:21:52 -0400 Received: by mail-it0-f46.google.com with SMTP id k192so15051509ith.1 for ; Tue, 11 Jul 2017 03:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JrxRqS7BWJUEfAr/SuotytHCp9rogEmU2E04L0sknGk=; b=Zj4360wXJs0YZVl41AUscr0et73Ok2M7Sl0Dsmy4AtLvozdCyREo6e07iCKQtX4ZzB EuakdFULFb9TNzk5xpValEu7snUNfkyciKba3c8t4ENQhrSC8d5/pqy8/N6/IQr5I+k9 1TWEMKr2P/Zxn3KMWJiwMxokBY5/YeXv0GPez+jM8MkOUC5R44+DkhtRxkZBY5Fw3J2x eIn/k/6N63W6KpnD5o2NDo3oaSE7BB4D2R4zphxxg8ZZ0tfBposhM9lUHSiEgQYFce3B d5NUgMuClSJEGA4O0M40ImvnHNohLAhOdKL8PixAkzaUO1dz9SvtkUOvBmWgX+1+7hBW 16rw== 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=JrxRqS7BWJUEfAr/SuotytHCp9rogEmU2E04L0sknGk=; b=E5DT26td2K6BhIAtBq7pDnqIEkTpfAnU1B8jEGAiaFf+loJYjeAa8nz+kqOKtGkWEU 95age8KBiHfD/1EaMy/sit46elcJDRFfboRQctlAcibGSbd/9f16W4GrmNsOkKAKQEXz 9xRqHa0DgU8Aron4JpS2Oty0NQvTyQ3ireVee6ZX3HiK9r8jgYbYkib4U+kkcQ+u2cW+ xpiDOjLVvmNMTD/Ael/6/W7CNC+lNBuC3JLdoeSFmbj+zQmvH8NIvHGNaZi7ZZcpmER0 cdJ+i/3eW+5EBxMXevqvAvkD/zJ96FO9RAtyORisSoDxTpu1GRhoSmN3ifA5mUtkcblX XuwQ== X-Gm-Message-State: AIVw111fCGwwaaYlhExhsaWNM2NDF+btWdZZKy2dzKjHx5gCh9vOe1zu iyNGKzFrtjARVXnJmWBK1LUM78n8rQ== X-Received: by 10.107.1.68 with SMTP id 65mr7763809iob.174.1499768509422; Tue, 11 Jul 2017 03:21:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.33.4 with HTTP; Tue, 11 Jul 2017 03:21:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jul 2017 12:21:48 +0200 Message-ID: To: Marco Pivetta Cc: tyson andre , PHP Internals List , Stanislav Malyshev , =?UTF-8?Q?Micha=C5=82_Brzuchalski?= Content-Type: multipart/alternative; boundary="001a113973be3fe43b055408119f" Subject: Re: [PHP-DEV] Exposing object handles to userland From: nikita.ppv@gmail.com (Nikita Popov) --001a113973be3fe43b055408119f Content-Type: text/plain; charset="UTF-8" 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). Nikita --001a113973be3fe43b055408119f--