summaryrefslogtreecommitdiff
path: root/Zend/tests/halt_compiler4.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/halt_compiler4.phpt')
-rw-r--r--Zend/tests/halt_compiler4.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/tests/halt_compiler4.phpt b/Zend/tests/halt_compiler4.phpt
new file mode 100644
index 0000000..43e532c
--- /dev/null
+++ b/Zend/tests/halt_compiler4.phpt
@@ -0,0 +1,10 @@
+--TEST--
+__HALT_COMPILER(); bad define() of __COMPILER_HALT_OFFSET__ 2
+--FILE--
+<?php
+define ('__COMPILER_HALT_OFFSET__', 1);
+__HALT_COMPILER();
+?>
+==DONE==
+--EXPECTF--
+Notice: Constant __COMPILER_HALT_OFFSET__ already defined in %s on line %d \ No newline at end of file