Re: Remove alternative PHP tags

From: Date: Fri, 12 Sep 2014 10:35:28 +0000
Subject: Re: Remove alternative PHP tags
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-77159@lists.php.net to get a copy of this message
Michael Kliewe wrote (on 12/09/2014):
If you check Github you will see round about 10.000 code results, but most of them are tests (.phpt), example files, duplicate results, and maybe <100 projects that really use them, and I would guess >90% of these projects are rarely used and very old. https://github.com/search?p=1&q=%22%3Cscript+language%3Dphp%3E%22&ref=searchresults&type=Code
This file made me chuckle: modern PHP tags to contain the doc block, then dropping into <script> tags for the actual code: https://github.com/linagora/OBM/blob/next/ui/php/obm.php More seriously, that's an example of a project which appears to be currently maintained, relying on these tags throughout. Not clear if it's tested against the latest PHP, but no obvious indication that it's not. I'm in two minds on this one - removing cruft like this certainly makes the language feel more modern and maintained, but whether it's worth breaking the BC on this just for the sake of it, I'm not sure... -- Rowan Collins [IMSoP]

« previous php.internals (#77159) next »