* attempt to fix php4 ref handling