Professional Documents
Culture Documents
MultiplePHPversionssetup
London,UK Monday,November7th2011,09:11GMT Formanyofmyprojects(bothhobbyandcommercial)IneedtosupportmanydifferentPHPconfigurations.Notonly justdifferentPHPversions,butalsodebugbuilds,ZTSbuildsand32bitbuilds.Inordertobeabletotestandbuild extensionsagainstallthosedifferentPHPconfigurationsIhaveadoptedasimplemethodthatI'msharingwithyou here. ThemajorpartofitisthatIuseadifferentinstallationprefixforeveryconfigurationofPHPthatImake.Rightnow, l s/ u s r / l o c a l / p h pshows:
5 . 1 d e v 5 . 3 . 2 5 . 3 . 8 d e v 5 . 3 d e v 3 2 b i t 5 . 3 d e v z t s 5 . 4 d e v t r u n k 5 . 2 d e v 5 . 3 . 7 5 . 3 d e v 5 . 3 d e v n o d e b u g 5 . 4 . 0 b e t a 1 5 . 4 d e v z t s
Forasimple5.3devbuildIrun:
. / b u i l d5 . 3 d e v
ThiscompilesPHP5.3fromSVN,indebugmode,withoutZTSandforthe64bitarchitecture.Somethingmoreexotic variantscouldbe:
. / b u i l d5 . 3 . 8d e b u gz t s . / b u i l d5 . 4 d e vn o d e b u gn o z t s3 2 b i t
derickrethans.nl/multiple-php-version-setup.html
1/2
15/10/2013
IcannoweasilyswitchbetweenPHPversionsbytypingontheshell:
p e5 . 3 d e v
or:
p e5 . 4 d e v z t s
derickrethans.nl/multiple-php-version-setup.html
2/2