Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:11456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12343 invoked by uid 1010); 22 Jul 2004 06:03:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12313 invoked from network); 22 Jul 2004 06:03:24 -0000 Received: from unknown (HELO hyperion.gravitonic.com) (67.161.35.64) by pb1.pair.com with SMTP; 22 Jul 2004 06:03:24 -0000 Received: from hyperion.gravitonic.com (localhost [127.0.0.1]) by hyperion.gravitonic.com (8.12.8/8.12.8) with ESMTP id i6M61WqI010414; Wed, 21 Jul 2004 23:01:33 -0700 Received: (from andrei@localhost) by hyperion.gravitonic.com (8.12.8/8.12.8/Submit) id i6M61V8T010410; Wed, 21 Jul 2004 23:01:31 -0700 X-Authentication-Warning: hyperion.gravitonic.com: andrei set sender to andrei@gravitonic.com using -f Date: Wed, 21 Jul 2004 23:01:30 -0700 To: Andi Gutmans , Zeev Suraski , stas@zend.com Cc: PHP Internals Message-ID: <20040722060130.GA10387@hyperion.gravitonic.com> Mail-Followup-To: Andrei Zmievski , Andi Gutmans , Zeev Suraski , stas@zend.com, PHP Internals Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Internal properties From: andrei@gravitonic.com (Andrei Zmievski) Hi, I saw this in zend_opcode.c zend_cleanup_class_data(): /* Note that only run-time accessed data need to be cleaned up, * pre-defined data can not contain objects and thus are not probelmatic */ Which lead me to look into zend_declare_property() and I noticed that you cannot declare properties that are objects/arrays/resources. Is there a good reason for disallowing extension authors to do that? Alternatively, do you suggest using zend_hash_update() on class properties even though I really need this property to be static so its shared by all instances of the class? -Andrei * Unix is user friendly, it is just chooses its users selectively. *