Page 1 of 1

does PHP Version 4.3.10 support OOP?

Posted: Sun Aug 20, 2006 12:26 pm
by saumya
Hi,
I am currently developing an application in PHP 5.0 with classes and OOP.But at the middle of it I realised that client's server supports only PHP 4.3.Does that mean, I have to redevelop my application or my application can run on PHP 4.3.
Please advice?
saumya

Posted: Sun Aug 20, 2006 12:37 pm
by onion2k
The object orientation functionality of PHP was changed considerably between version 4 and 5. PHP 4 has objects, but it handles lots of things differently. It's very unlikely your PHP 5 code will work. In future, it's probably best to make sure your development environment is set up approximately the same as your production server.

Posted: Sun Aug 20, 2006 12:38 pm
by Luke
There is object support for PHP 4, but a substantial amount of OOP support was introducted in PHP5.

Good thread related to this:
viewtopic.php?t=53940&highlight=php5+php4

Posted: Sun Aug 20, 2006 12:48 pm
by saumya
Thanks guys