[Labs-l] [Tools] Change default webservice release from precise to trusty

Merlijn van Deen valhallasw at arctus.nl
Sat Apr 18 22:18:26 UTC 2015


On 19 April 2015 at 00:05, Maciej Jaros <egil at wp.pl> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/labs-l/attachments/20150419/1f4500ad/attachment.html>


More information about the Labs-l mailing list