Andrew Faulds wrote:
Then can you explain why <?= has stopped working on shared hosting on a number
>of ISP's who have recently updated from 5.2 to 5.3 ...
Which? "A number of ISP's"? How many are we talking about?
Also, is it our problem if ISPs changed their configuration during an upgrade?
How do we know it's our fault? Debian or RedHat or some other common base
distribution may have changed the configuration - you realise that they are most
likely using a slightly modified version from a distribution, and use the
distribution defaults, or a modified version of that, yes? Probably not the
official PHP version directly built from source, I'd figure.
>The default on PHP5.3 is to switch 'short_open_tag' off? which also disables
><?=
I'm fairly sure Rasmus said it wasn't. And, being Rasmus, I think I can trust
him on that;)
(I don't really use short tags, so I don't know myself)
The default if it's not included in the .ini is ON, but the sample .ini's both
switch it off, and that is what the distributions follow when creating a clean
install.
ALL that was required when the problem was identified was that <?= was handled
in PHP5.3 the same way it IS now handled in PHP5.4 and the problem would not
exist. This is an example of not thinking through to production a simple change
in the core PHP ...
HOPEFULLY ISP's will start leapfrogging 5.3 anyway and upgrade direct to 5.4,
but since 60% of live users are currently on 5.2 the potential number of users
with a problem could be quite large. I've hit it myself on three different ISP's
now, but knowing how to fix it isn't helped if the ISP will not turn it on
again. One ends up going through sites worth of PHP manually fixing it,
something which I should perhaps be charging the customers for - but it's not
THEIR problem is it :( OK some of those site have <? to clean up as well, but
it's interesting how many sites HAD already been cleaned for that in PHP5.2 ...
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php