Re: [PHP4BETA] Re: SESS: objects containing objects *final statement*(?) please read!

From: Date: Fri, 25 Feb 2000 15:50:40 +0000
Subject: Re: [PHP4BETA] Re: SESS: objects containing objects *final statement*(?) please read!
References: 1 2 3 4 5 6  Groups: php.version4 
Request: Send a blank email to php-version4+get-10958@lists.php.net to get a copy of this message
On Fri, Feb 25, 2000 at 09:38:27AM -0600, Andrei Zmievski wrote: > On Fri, 25 Feb 2000, Thies C . Arntzen wrote: > > c'mon boys we can do nicer that this? > > > > i really like the sleep()/wakeup() thing - but shouldn't we > > make some standard method names part of the language instead > > of having to register_blabla_() them. i don't see why > > somebody would have to name them different. > > That'd be fine with me. Something like serialize()/unserialize() in > objects. > > > BTW: what about not serializing class variables that start > > with a '_' character. the usage should be obvious, right? > > Nope, sorry. I (and others) use _ as means of denoting private > variables. that's ok - as long as you implement a serialize()/unserialize() pair that stores the to-be-persistent data in a variable thats not prefixed by _ hmm - i'm not sure - somehow it just feels right to have a way of telling php NOT to serialize certain class variables, doesn't it? > > -Andrei > > Politics is for the moment, an equation is for eternity. > > -- Albert Einstein > -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

« previous php.version4 (#10958) next »