I have been developing a webapp in PHP5, but found that most hosting services seem to require PHP4. What pitfalls should I look for when trying to run my PHP5 code on PHP4? Common work-arounds?
The only one I've noticed thus far is that PHP 4.3.11 doesn't seem to have real booleans - can I just define "true" and "false" as global constants? How would I do that in PHP?
Downgrading Versions
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
php4 has always had "real" boolean types. 
It may be best to read this, but reverse it.
The basics: there's a host of functions you'll need to backport (pear has a compatibility layer for this), class definitions are quite different (less magic functions), be careful of reference based things. Object handling is quite different. The list goes on and on...
It may be best to read this, but reverse it.
The basics: there's a host of functions you'll need to backport (pear has a compatibility layer for this), class definitions are quite different (less magic functions), be careful of reference based things. Object handling is quite different. The list goes on and on...
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: