php3 compatibility