Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19742 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85854 invoked by uid 1010); 26 Oct 2005 21:19:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85838 invoked from network); 26 Oct 2005 21:19:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2005 21:19:39 -0000 X-Host-Fingerprint: 195.227.108.51 wfserver02.wf-ppr.de Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from ([195.227.108.51:45131] helo=wfserver02.wf-ppr.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 30/1C-22886-BE2FF534 for ; Wed, 26 Oct 2005 17:19:39 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Date: Wed, 26 Oct 2005 23:19:29 +0200 Message-ID: <00A2E2156BEE8446A81C8881AE117F192C1866@companyweb> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] Questions about "static" and serialization Thread-Index: AcXaLuCxExeYkz27SfqWgWDPKFjnWAARAzLg To: Subject: AW: [PHP-DEV] Questions about "static" and serialization From: mp@webfactory.de ("Matthias Pigulla") > Von: Wez Furlong [mailto:kingwez@gmail.com]=20 >=20 > As you mentioned, static properties and statically scoped=20 > variables don't belong to an object instance, so it doesn't=20 > make sense to serialize them. Ok, but on the other hand they are just variables - so the question was if there is any (possibly userland) way to capture them in the line with "normal" session handling, by using (un)serialize or whatever. As to persisting and restoring structures like the singleton pattern, I just noticed that the builtin serialization/persistence mechanisms don't care about object identity at all... :( Best regards, Matthias