najibk Posted March 17, 2007 Share Posted March 17, 2007 Hi guys! This is my first post but I plan to be pretty active around here. Recently I've been disillusioned to the fact that not all my clients' web-hosts run PHP5 - rather most use PHP4.4.4. I understand they didn't all rush to upgrade from PHP4.4.4 mainly due to the fact that the pre-installed scripts they use and advertise to their clients require changing of some code. Anyways, I've been using some reasonably complex OOP (object oriented programming) data structures with my MVC environment and many methods related to such properties respectively. I know "===" was introduced in PHP4, but is there anything else I should watch out for? That is, are there any important things in PHP5 that are strictly not supported in PHP 4.4.4? I'm using inheritance, class abstraction and some miscellaneous OOP functions. Also, I seem to be able to use this: class Foo { Foo($blah) { //constructor arguments } } to construct my objects in PHP 4.4.4. Although, I am aware that __construct() is available too. Is there any disadvantage/advantage to doing it either way or what are the differences? I apologize if I've asked too much on my first post and if anything is unclear let me know and I'll explain asap! Thanks A LOT in advance -najibk Link to comment https://forums.phpfreaks.com/topic/43144-php5-vs-php444/ Share on other sites More sharing options...
kenrbnsn Posted March 17, 2007 Share Posted March 17, 2007 You probably should read Migrating from PHP 4 to PHP 5. It should give you good hints about things. Ken Link to comment https://forums.phpfreaks.com/topic/43144-php5-vs-php444/#findComment-209531 Share on other sites More sharing options...
najibk Posted March 17, 2007 Author Share Posted March 17, 2007 Yeah ahah I was just going to post that I found that page. Pretty much PHP5 went from pseudo OOP in PHP4.4.4 to real OOP. I didn't use the "&" key to indicate object references yet (similar to how it is done in C++), even though i was planning to, so I think I'm fine. Dos anyone know the answer to my Constructor question? Link to comment https://forums.phpfreaks.com/topic/43144-php5-vs-php444/#findComment-209534 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.