Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62916 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42020 invoked from network); 9 Sep 2012 11:52:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Sep 2012 11:52:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 config.schlueters.de Received: from [217.114.211.66] ([217.114.211.66:59225] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/B3-06600-EF28C405 for ; Sun, 09 Sep 2012 07:52:31 -0400 Received: from [192.168.2.104] (pD9E1D225.dip.t-dialin.net [217.225.210.37]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 49B1763372; Sun, 9 Sep 2012 13:52:27 +0200 (CEST) References: <1347177097.6077.82.camel@lat17.home.bof.de> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: <8A4F4A9D-C994-4CC1-ADF5-4779C600583D@schlueters.de> Cc: Patrick Schaaf , "internals@lists.php.net" X-Mailer: iPod Mail (9B206) Date: Sun, 9 Sep 2012 13:52:21 +0200 To: Sherif Ramadan Subject: Re: [PHP-DEV] get_class_vars() returned information ORDER From: johannes@schlueters.de (=?utf-8?Q?Johannes_Schl=C3=BCter?=) 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 it >> in the documentation. >>=20 >=20 > 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.=20 There's no such guarantee. The fact that it is using a Hashtable which has a= n order is an implementation detail. This might change (even though a change= is unlikely) The only promise of get_class_vars() is to return all. johannes