Created
September 12, 2014 17:41
-
-
Save nikic/74769d74dad8b9ef221b to your computer and use it in GitHub Desktop.
Tool for porting alternative PHP tags to <?php, <?= and ?>
It always adds an additonal whitespace for "<?php". See https://gist.github.com/pkordylewski/3e74126c248f44b7c826
Hi,
Am I right in saying that this script won't work in PHP7? Since it relies on ASP tags being enabled?
How strange... by definition this script will be used by people who have migrated to PHP7 and want to "fix" old scripts...
Am I missing something?
Cheers!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
preg_match()
should be case-insensitive: https://gist.github.com/pgl/e28468339344d0bcd91f