Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87495 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90901 invoked from network); 2 Aug 2015 08:59:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2015 08:59:00 -0000 Authentication-Results: pb1.pair.com header.from=nicolas.grekas@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nicolas.grekas@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: nicolas.grekas@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:38783] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0E/50-22986-3DBDDB55 for ; Sun, 02 Aug 2015 04:59:00 -0400 Received: by wibxm9 with SMTP id xm9so78934642wib.1 for ; Sun, 02 Aug 2015 01:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Mfz8aJpQ8j+MpTct8+frV+Dy0KM2bxK+QcLh5yWKWeE=; b=iMjxkvyjLa+VZyf6kNJ+Vz5cGqYxJPz9fb+3OWpIma+Jlou0VRLjPdmupofH+MBedQ aYkhhyHORTM6CJ3cCCm4tPHHY/0qjx+dTOUM2GIeTzbbVHRZQqC4uPCNHVOqB2SyRIcM 4/IxJ943+uYQCkbUQSmDuHca1vRVXefbW58Gouo6Ghg7Q2zRhxxJ6IoodtIchx+iyIJL /1Pvqxgl7ES46bzOYPcynBeXFgoetY46G+7NGJS5brWWNuqSSnxBruORTOiK09va24vS UMoB0h2UcVYqmepiSyDh6Rb+F6/5mZJ04iZUUEj3HdpSPj0tfor0NY5HzYOWfK8rbU6x 4W8A== X-Received: by 10.194.192.99 with SMTP id hf3mr22490877wjc.78.1438505935866; Sun, 02 Aug 2015 01:58:55 -0700 (PDT) MIME-Version: 1.0 Sender: nicolas.grekas@gmail.com Received: by 10.27.172.10 with HTTP; Sun, 2 Aug 2015 01:58:36 -0700 (PDT) In-Reply-To: <55BDC196.1030306@gmail.com> References: <55BDC196.1030306@gmail.com> Date: Sun, 2 Aug 2015 10:58:36 +0200 X-Google-Sender-Auth: NFYyCtGHqkcUtPKd1ppOMR4QVoM Message-ID: To: Stanislav Malyshev Cc: Nikita Popov , Julien Pauli , PHP Internals Content-Type: multipart/alternative; boundary=047d7bae4696508fd4051c504328 Subject: Re: [PHP-DEV] Exposing object handles to userland From: nicolas.grekas+php@gmail.com (Nicolas Grekas) --047d7bae4696508fd4051c504328 Content-Type: text/plain; charset=UTF-8 Hi Stas, thanks for hooking into this thread However, committing to having specific object ID (e.g. as integer) as > part of public API is pretty big commitment This is already part of the public API: var_dump and debug_zval_dump do expose object IDs to userland. It's just inefficient to get for more advanced use cases. Even if its internal implementation is totally different from PHP's, HHVM adds an id to every object, just for this requirement: matching what PHP exposes to userland. I'd more than happy to have an spl_object_id() function btw! Nicolas --047d7bae4696508fd4051c504328--