Compiling PHP 6
Posted: Sun Nov 09, 2008 5:08 pm
I really want to try out some of the locale/intl features and unicode of PHP 6 I think they will help me solve a lot of internationalization issues, but I also need a server to continue running 5.2.0
So I would like to download the PHP 6 source, compile and build the latest version and temporarily swap the old version with the new.
How can this be done while making it easy to switch back when I need 5.2?
Is it just the single binary and it's extensions which need be copied over, in addition to php.ini? WOuld this work, if I made temp copies of each then just renamed older binaries back to original and php.ini?
Can I build PHP6 into a separate directory and just notify Apache to use the latest version?
So I would like to download the PHP 6 source, compile and build the latest version and temporarily swap the old version with the new.
How can this be done while making it easy to switch back when I need 5.2?
Is it just the single binary and it's extensions which need be copied over, in addition to php.ini? WOuld this work, if I made temp copies of each then just renamed older binaries back to original and php.ini?
Can I build PHP6 into a separate directory and just notify Apache to use the latest version?