PHP 5.2.1 seems to have many issues - I wouldn't recommend it.
You can try and build a 64-bit binary yourself, especially if you only want limited extensions. Add "-xtarget=generic64" to CFLAGS.
Be warned that you need to ensure that all libraries that PHP links with which are not part of the system must also need to be rebuilt as 64bit.
Shanti