Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87493 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76523 invoked from network); 2 Aug 2015 07:12:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2015 07:12:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.45 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.45 mail-pa0-f45.google.com Received: from [209.85.220.45] ([209.85.220.45:36350] helo=mail-pa0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 90/B0-05719-0E2CDB55 for ; Sun, 02 Aug 2015 03:12:33 -0400 Received: by pacgq8 with SMTP id gq8so1180070pac.3 for ; Sun, 02 Aug 2015 00:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=7J9aJ9ux15fXMgVTczoA0PR846QE7JGG38dj72qtLTE=; b=cHK/pwvM8ts3lcQwiRKrSfIDtspcvGqW4mv6/zVTbLtPXOUaCayO5/L6yxvqLt8+yK E/4uUp3QeaXucaRdF7loLkB4nOZJWMrNmTTKE5CUtc33Psq0qwJ6WvEemqYSTgisfhTh H8ers8CFDRzGvKNcFEjKsSxMgOmrsHQk1koiEJNI9LK7W9rkiI0GaGtnEhpA4AOtYBv/ qzKcua868fJcwEVV+Gylh8v9BBuNQ52ioPC16VBNjJcDZcke0UpHnH4cfG8poZaPVC6p vRCYAk3FT57cOsBD5jSuu5gFzoXRlHmR8wiFiwg4focUbYjhNl0OB93LEuZPNnFEiCP+ Zgmg== X-Received: by 10.68.205.167 with SMTP id lh7mr12324443pbc.48.1438499550306; Sun, 02 Aug 2015 00:12:30 -0700 (PDT) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by smtp.gmail.com with ESMTPSA id gs2sm3934101pbc.15.2015.08.02.00.12.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Aug 2015 00:12:29 -0700 (PDT) To: Nicolas Grekas , Julien Pauli References: Cc: PHP Internals Message-ID: <55BDC2D7.4020103@gmail.com> Date: Sun, 2 Aug 2015 00:12:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Exposing object handles to userland From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > It would be awesome if this patch could be applied for php 7.0! Please don't. This changes the whole meaning of spl_object_hash, and serves no useful purpose. If you need the id so much, it should be a separate function. I am still against exposing raw IDs, but if the consensus is we need them then it should be done cleanly not by just taking existing function and repurposing half of its output. That's not the right design by any measure. And rushing with it into 7.0 does not give any time to properly discuss it. -- Stas Malyshev smalyshev@gmail.com