Upgrade of PHP4
kdk at daleco.biz
Tue Oct 9 06:13:20 PDT 2007
Olivier Nicole wrote:
> Thanks, now that lads to the second question, what will I break when
> updating? What should I be carefull about? I have several servers,
> managing quite many sites, with a lot of home made pages...
I would perhaps do a "test build", and make notes of the steps for
the upgrade, to try and ward off "breakage" in the build/install
Otherwise, PHP5 should be completely backwards compatible with PHP4,
with a few notable "switches" that have been adjusted.
One thing we noted was that the short tag (<?) was now deprecated*,
and there were lots of instances of it being used. In particular,
the "short tag echo" construct:
<foo html here <?=$bar ?> close html>
It wasn't too handy to have all those variables suddenly
disappear from the HTML forms. OTOH, it's fairly trivial
to replace with some scripting work, IIRC. But, that could
depend on the number of servers/sites, as you observe.
* "deprecated" might not be the right word; it's now OFF by default,
and I guess you can turn it on, but the possibility of conflict
with XML contraindicates that...
Do you think theres a God?"
"Well, SOMEbodys out to get me!
-- Calvin and Hobbs
More information about the freebsd-questions