PDA

View Full Version : Object aggregation in the future


danielt
05-01-2003, 11:14 AM
Hi!

I just started with ibject aggregation in PHP. My first question is, does it need a lot of resources and with that, does it increase the execution time a lot? And last question, what will it be in the future versions? I learned that PHP 5 will be a lot more OO...

Daniel

firepages
05-01-2003, 02:25 PM
PHP5 will have neatly 'full' OO capabilities for applications that require (would benefit from) it.

Aggregation as an alternative to multiple inheritance can be veiwed to be as undesirable as multiple inheritance itself (depending who you ask ;)) either way , I would wait for the more complete OO implementation coming with php5 before getting that deep into aggregation etc ? grab a php5 copy from http://snaps.php.net if you have not already , if you come from a JAVA background then PHP5 should be most everything you want.

As for speed issues , OO in PHP4 is partially 'bolted on' and as such has some performance issues thankfully rectified in PHP5