diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-04-04 00:42:42 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-04-04 00:42:42 +0000 |
| commit | 17c0c49a54db2a5dd6dc2205d0e02978b3070bae (patch) | |
| tree | e1bd13682153b272b30d64af86acfe605d34af97 /Zend/tests/halt_compiler4.phpt | |
| parent | a9ca51ff1aa4b444d842d5ad771bd6f0a65e5c5c (diff) | |
| download | php-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.phpt | 10 |
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 |
