Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7877 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8706 invoked by uid 1010); 16 Feb 2004 15:00:34 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8672 invoked from network); 16 Feb 2004 15:00:34 -0000 Received: from unknown (HELO web12707.mail.yahoo.com) (216.136.173.244) by pb1.pair.com with SMTP; 16 Feb 2004 15:00:34 -0000 Message-ID: <20040216150033.10710.qmail@web12707.mail.yahoo.com> Received: from [165.165.225.240] by web12707.mail.yahoo.com via HTTP; Mon, 16 Feb 2004 07:00:33 PST Date: Mon, 16 Feb 2004 07:00:33 -0800 (PST) To: internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: static variables and the notion of a classloader From: java_sse@yahoo.com (Dave Peckham) Hi dev guys, I'm having a bit of difficulty understanding the behaviour of the new static variables functionality in PHP5. I wrote this test: To my surprise, the count does not increment on each page load. Obviously this means that there is no equivalent to the classloader concept. So the classes are loaded and unloaded on each page request. Is this really the desired direction? I can't see what the usefulness of this feature is if it only applies to a single page. (Not to mention the overhead of reloading the individual PHP files that contain my classes on each page.) Anyway, I'm interested in your thoughts about the direction of PHP with regard to OOP, and to see if there is anything I might be able to contribute. Thanks, Dave __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html