Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62918 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45505 invoked from network); 9 Sep 2012 12:10:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2012 12:10:14 -0000 Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-lpp01m010-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:61685] helo=mail-lpp01m010-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/64-06600-5278C405 for ; Sun, 09 Sep 2012 08:10:14 -0400 Received: by lahl5 with SMTP id l5so593654lah.29 for ; Sun, 09 Sep 2012 05:10:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=EjYeh5Nt74kdO6BFzqYZKBhBi7nxu2Zv5B0l14Lh7YQ=; b=bZ0Kb+uBrf36h/O822y2WKzdJ+nr8f1ez1MwHG+dcvNdUhcQBINJJjrVIlz88uW6w5 WqKePnMFql8zplGK+W1wjQk0wJvbHhtgNAb7pf21Bq6UIgBK6QSD7pdqpFRKrypExCWu 31xwzi2E1cn6CrvUerb5N6i5pT7/hrkpJAjJ9TwsYu9JSk2xn79Ar3kpQwTO5sjkTiz+ 3fbP2fZw7ou+JzSk753KTSmzy4+SqaB6UhbV+EIL8WgzZ/HUtDg3LdzBQEnB3agLoPIU rGtUAKoBtjmFepYiMSsRqncg3CE2BNLxYr36rUx42mjL/aw9OCAvFxIx3pN51H4LF3UC V0yw== MIME-Version: 1.0 Received: by 10.152.146.169 with SMTP id td9mr9635316lab.42.1347192610908; Sun, 09 Sep 2012 05:10:10 -0700 (PDT) Received: by 10.112.12.178 with HTTP; Sun, 9 Sep 2012 05:10:10 -0700 (PDT) In-Reply-To: <8A4F4A9D-C994-4CC1-ADF5-4779C600583D@schlueters.de> References: <1347177097.6077.82.camel@lat17.home.bof.de> <8A4F4A9D-C994-4CC1-ADF5-4779C600583D@schlueters.de> Date: Sun, 9 Sep 2012 08:10:10 -0400 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: Patrick Schaaf , "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] get_class_vars() returned information ORDER From: theanomaly.is@gmail.com (Sherif Ramadan) On Sun, Sep 9, 2012 at 7:52 AM, Johannes Schl=FCter wrote: > > > On Sep 9, 2012, at 10:22, Sherif Ramadan wrote: >>> I'm curious whether the ORDER of the class properties returned by >>> get_class_vars(), is in some way guaranteed. I do not find mention of i= t >>> in the documentation. >>> >> >> The only real guarantee is that of how the class properties are stored >> in the hashtable. get_class_vars() is essentially just reading from a >> hashtable of class properties. > > There's no such guarantee. The fact that it is using a Hashtable which ha= s an order is an implementation detail. This might change (even though a ch= ange is unlikely) The only promise of get_class_vars() is to return all. > Right, I should have said "there's no guarantee at all", but what I was trying to say was that this isn't really by guarantee of get_class_vars(). Just the fact that this particular implementation detail is unlikely to change is what makes it a convenient side effect. Sorry, that was poorly worded. > johannes >