Split off PHP4 specific code