Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22954 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15294 invoked by uid 1010); 25 Apr 2006 11:30:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15279 invoked from network); 25 Apr 2006 11:30:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2006 11:30:34 -0000 X-PHP-List-Original-Sender: edink@emini.dk X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from ([192.38.9.232:13732] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 81/DE-19715-8580E444 for ; Tue, 25 Apr 2006 07:30:32 -0400 Received: from [10.0.0.18] (palestine.intra.emini.dk [10.0.0.18]) by gw2.emini.dk (Postfix) with ESMTP id 26ACFAAFCC for ; Tue, 25 Apr 2006 13:30:29 +0200 (CEST) Message-ID: <444E0854.2000804@emini.dk> Date: Tue, 25 Apr 2006 13:30:28 +0200 Organization: Emini A/S User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "PHP Internals" X-Enigmail-Version: 0.93.0.0 OpenPGP: id=157D0FA8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Static properties From: edink@emini.dk (Edin Kadribasic) Hi, I was wondering if someone could enlighten me why it is not possible to create on-the-fly static properties: php -r 'class foo{}; foo::$bar = 1;' Fatal error: Access to undeclared static property: foo::$bar in Command line code on line 1 Was this not possible because of the engine implementation of the static properties? Edin