Re: Deprecate short_open_tag ini directive?

From: Date: Tue, 12 Mar 2019 09:51:12 +0000
Subject: Re: Deprecate short_open_tag ini directive?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-104665@lists.php.net to get a copy of this message
On Mon, 11 Mar 2019 at 20:06, G. P. B. <george.banyard@gmail.com> wrote: > From my understanding, the <? tag is not available without > the directive, > so maybe we should deprecate PHP's short tag altogether? > I think when that's been proposed in the past, people have said they like it for use in simple templates, often along with the "alternative control structures", e.g.: <? foreach ( $things as $thing ): ?> <? if ( $thing->quantity > 1 ): ?><p><?= $thing->description; ?></p><? endif; ?> <? endforeach; ?> I couldn't find any discussions for a few years, though, so it's possible opinions have changed. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#104665) next »