On 19 April 2015 at 00:05, Maciej Jaros <[email protected]> wrote:
> You've forgot to mention short_open_tags is set to Off on trusty.
>
> Regards,
> Nux.
>
> PS: Yeah, yeah, I know short PHP tags are now considered evil and all that
> bla, bla, bla ;-).
>
There are three ways to start PHP code: <?php echo('bla'); ?>, <?
echo('bla'); ?> and <?= 'bla' ?>. The middle one (<? ?>) is the one that's
considered evil; the last one (<?= ?>) is a notation that's very useful for
templating.
In PHP 5.3 and lower, you either had just <?php ?> and not the other two,
or, with short_open_tags on, all three.
In PHP 5.4, this changed. Now you always have both <?php ?> and <?= ?>, but
you need short_open_tags for the one that's considered evil.
So: yes, short_open_tags is now off, but it's unlikely to have an effect on
your code. If it does, it should be reasonable simple to fix -- basically a
search and replace from <? to <?php.
Merlijn
_______________________________________________
Labs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/labs-l