Re: Sessions and Objects

From: Date: Sun, 18 Jun 2000 17:36:06 +0000
Subject: Re: Sessions and Objects
References: 1  Groups: php.dev php.general 
Request: Send a blank email to php-dev+get-21687@lists.php.net to get a copy of this message
Apologies are in order. I guess I've been working far too long in "commercial" code, and my attitude was off-base. You are correct in the fact that it IS OSS, and I thought that PHP was yours/Zend's. In one of your talks you spoke like Zend all but owned PHP, and thus they (and you) would have more of an investment/gain from it. If not, my apologies. Again, I'm too used to someone "owning" software and being responsible for it's care/feeding/growth. I'm looking at the code now, though I need to get the latest from CVS and while I'm not familiar with PHP's internals, having a smarter class loading scheme doesn't look like it'll be too much work. Would everyone rather see 1) No autoloading of classes. You call $php_var = php_load_class("class_name"); 2) Autoloading of classes with the same name? ie, if you register your class as "foo" then you'll always have "foo" available (including methods). Option #1 I put up there simply because if you have (somewhere) 100 classes registered to the session but you're not using 99 of them then you keep speed up instead of calling the create/destroy/load methods for the unused 99 - you only load what you need. This is my preference, but there's a lot of people out there and maybe someone has a better idea that won't break existing sites... -Szii

« previous php.dev (#21687) next »