Skip to content

Remove alternative php tags #813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Sep 9, 2014

Removes:

  • <% opening tag
  • <%= short opening tag
  • %> closing tag
  • /<script\s+language\s*=\s*(php|"php"|'php')\s*>/i opening tag
  • </script> closing tag
  • asp_tags ini directive

@nikic nikic force-pushed the removeAlternativePhpTags branch from b72de3c to d9b766c Compare September 10, 2014 10:01
@guilhermeblanco
Copy link

Shouldn't we deprecate short tags also?

@JulienTant
Copy link

@guilhermeblanco short tags are useful for templating

@Majkl578
Copy link
Contributor

@JulienTant: Short echo open tag (<?=) is useful, standard short open tag (<?) is trash and should be removed.
(Sadly, <?php= would make much more sense than <?=.)

@@ -2,7 +2,6 @@
short_open_tag: Off, asp_tags: Off
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this asp_tags mention be removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I dropped the mention :)

Removes:
 * <% opening tag
 * %> closing tag
 * <%= short opening tag
 * /<script\s+language\s*=\s*(php|"php"|'php')\s*>/i opening tag
 * /</script>/i closing tag
 * asp_tags ini directive
@nikic nikic force-pushed the removeAlternativePhpTags branch from d9b766c to cc5925b Compare September 23, 2014 17:20
@nikic nikic closed this Oct 11, 2014
@Kubo2
Copy link
Contributor

Kubo2 commented Oct 12, 2014

@Majkl578, why standard short open tag is trash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants