diff options
author | Nikita Popov <nikic@php.net> | 2014-09-09 23:14:19 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2014-10-05 21:57:05 +0200 |
commit | e756333bbb0dd1496ee8f51044b104f3a997aa5f (patch) | |
tree | ec33974da3ed6f768a95bc5d0e82082a7c6f1ed0 /tests | |
parent | d58b70622a7e99ceee074e420d9271c2d8de116c (diff) | |
download | php-git-e756333bbb0dd1496ee8f51044b104f3a997aa5f.tar.gz |
Remove <% and <script language="php"> tags
As per https://wiki.php.net/rfc/remove_alternative_php_tags.
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/script_tag.phpt | 17 | ||||
-rw-r--r-- | tests/lang/short_tags.003.phpt | 32 | ||||
-rw-r--r-- | tests/lang/short_tags.004.phpt | 3 |
3 files changed, 1 insertions, 51 deletions
diff --git a/tests/lang/script_tag.phpt b/tests/lang/script_tag.phpt deleted file mode 100644 index 1b5c696295..0000000000 --- a/tests/lang/script_tag.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -<script> tag ---FILE-- -<script language=php> echo "ola\n";</script> -<script language="php"> echo "ola2\n";</script> -<script language='php'> echo "ola3\n";</script> -texto <sc <s <script> <script language> <script language=> -<script language=php> -#comment -echo "oi\n"; //ignore here -# 2nd comment ---EXPECT-- -ola -ola2 -ola3 -texto <sc <s <script> <script language> <script language=> -oi diff --git a/tests/lang/short_tags.003.phpt b/tests/lang/short_tags.003.phpt deleted file mode 100644 index 8894bf5029..0000000000 --- a/tests/lang/short_tags.003.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -short_open_tag: On, asp_tags: On ---INI-- -short_open_tag=on -asp_tags=on ---FILE-- -<?='this should get echoed'?> - -<%= 'so should this' %> - -<?php -$a = 'This gets echoed twice'; -?> - -<?= $a?> - -<%= $a%> - -<? $b=3; ?> - -<?php - echo "{$b}"; -?> ---EXPECT-- -this should get echoed -so should this - -This gets echoed twice -This gets echoed twice - -3 - diff --git a/tests/lang/short_tags.004.phpt b/tests/lang/short_tags.004.phpt index ff3308733a..6df8af1c2a 100644 --- a/tests/lang/short_tags.004.phpt +++ b/tests/lang/short_tags.004.phpt @@ -1,8 +1,7 @@ --TEST-- -short_open_tag: Off, asp_tags: Off +short_open_tag: Off --INI-- short_open_tag=off -asp_tags=off --FILE-- <%= 'so should this' %> |