Re: visibility + unserialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-05-27 at 08:40 -0700, Ted Wood wrote:
> Robert, thanks very much for your detailed explanation. This makes  
> sense as I've wrapped my brain around protected and private property  
> types.
>
> I think I'll be leaving them as public members for performance  
> reasons. Down the road, I may add special handling for certain
> members  
> that should be private and protected. The __sleep() and __wake()  
> function should come in handy for that.

If you're moving your entire system over to PHP5, then a one time pass
through the database may be optimal. A simple loop to grab each record,
import it, re-serialize and save it should do the trick. And from my
brief test where I found private members have precedence over public
members, it seems it might be the most efficient solution also... in the
long term.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux