summaryrefslogtreecommitdiff
path: root/tests/lang/short_tags.004.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/short_tags.004.phpt')
-rw-r--r--tests/lang/short_tags.004.phpt35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/lang/short_tags.004.phpt b/tests/lang/short_tags.004.phpt
new file mode 100644
index 0000000..ff33087
--- /dev/null
+++ b/tests/lang/short_tags.004.phpt
@@ -0,0 +1,35 @@
+--TEST--
+short_open_tag: Off, asp_tags: Off
+--INI--
+short_open_tag=off
+asp_tags=off
+--FILE--
+<%= 'so should this' %>
+
+<?php
+$a = 'This gets echoed twice';
+?>
+
+<?= $a?>
+
+<%= $a%>
+
+<? $b=3; ?>
+
+<?php
+ echo "{$b}";
+?>
+<?= "{$b}"?>
+--EXPECTF--
+<%= 'so should this' %>
+
+
+This gets echoed twice
+<%= $a%>
+
+<? $b=3; ?>
+
+
+Notice: Undefined variable: b in %s on line %d
+
+Notice: Undefined variable: b in %s on line %d