summaryrefslogtreecommitdiff
path: root/Zend/tests/halt_compiler4.phpt
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-04-04 00:42:42 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-04-04 00:42:42 +0000
commit17c0c49a54db2a5dd6dc2205d0e02978b3070bae (patch)
treee1bd13682153b272b30d64af86acfe605d34af97 /Zend/tests/halt_compiler4.phpt
parenta9ca51ff1aa4b444d842d5ad771bd6f0a65e5c5c (diff)
downloadphp-git-17c0c49a54db2a5dd6dc2205d0e02978b3070bae.tar.gz
Addres limitation of __HALT_COMPILER() that allowed only one instance
per request. # Patch by Greg Beaver
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 0000000000..43e532ce7d
--- /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