Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79290 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82171 invoked from network); 28 Nov 2014 20:06:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2014 20:06:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@bof.de; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@bof.de; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bof.de designates 80.242.145.70 as permitted sender) X-PHP-List-Original-Sender: php@bof.de X-Host-Fingerprint: 80.242.145.70 mars.intermailgate.com Received: from [80.242.145.70] ([80.242.145.70:51871] helo=mars.intermailgate.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 83/03-59154-BC5D8745 for ; Fri, 28 Nov 2014 15:06:36 -0500 Received: (qmail 21250 invoked by uid 1009); 28 Nov 2014 21:06:32 +0100 Received: from 209.85.216.175 by mars (envelope-from , uid 89) with qmail-scanner-1.25-st-qms (clamdscan: 0.96.2/19690. spamassassin: 3.3.1. perlscan: 1.25-st-qms. Clear:RC:1(209.85.216.175):. Processed in 0.27048 secs); 28 Nov 2014 20:06:32 -0000 X-Antivirus-MYDOMAIN-Mail-From: php@bof.de via mars X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(209.85.216.175):. Processed in 0.27048 secs Process 21241) Received: from mail-qc0-f175.google.com (gmail@bof.de@209.85.216.175) by mars.intermailgate.com with RC4-SHA encrypted SMTP; 28 Nov 2014 21:06:31 +0100 Received: by mail-qc0-f175.google.com with SMTP id b13so5726427qcw.20 for ; Fri, 28 Nov 2014 12:06:30 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.224.151.69 with SMTP id b5mr25387530qaw.71.1417205190298; Fri, 28 Nov 2014 12:06:30 -0800 (PST) Received: by 10.140.37.41 with HTTP; Fri, 28 Nov 2014 12:06:30 -0800 (PST) Received: by 10.140.37.41 with HTTP; Fri, 28 Nov 2014 12:06:30 -0800 (PST) In-Reply-To: References: Date: Fri, 28 Nov 2014 21:06:30 +0100 Message-ID: To: Bostjan Skufca Cc: internals , reeze Content-Type: multipart/alternative; boundary=089e0149ca44f116450508f0cb0d Subject: Re: [PHP-DEV] New function: spl_object_id() or spl_object_handle() From: php@bof.de (Patrick Schaaf) --089e0149ca44f116450508f0cb0d Content-Type: text/plain; charset=UTF-8 Am 28.11.2014 20:23 schrieb "Bostjan Skufca" : > > On 28 November 2014 at 04:10, reeze wrote: > > > Won't `$obj1 === $obj2` work for you ? > Think of it like this: > - in file bootstrap.php I see this object initialized and passed somewhere > - in file view.phtml I receive the object of the same type, but how can I > be sure that this object was not re-initialized somewhere in between? Why would you care about that? You would need to stash away that "identity information" somewhere, in bootstrap.php, and refer to that in view.phtml, right? Why can't you just stash away the object itself? Then you won't even have a need to "receive the object" in view.phtml. I really don't get it. What are you trying to do there that you cannot do with storing the object (reference) itself? best regards Patrick --089e0149ca44f116450508f0cb0d--