diff options
Diffstat (limited to 'Zend/tests/constants_008.phpt')
| -rw-r--r-- | Zend/tests/constants_008.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/tests/constants_008.phpt b/Zend/tests/constants_008.phpt new file mode 100644 index 0000000..226e147 --- /dev/null +++ b/Zend/tests/constants_008.phpt @@ -0,0 +1,17 @@ +--TEST-- +Defining constant twice with two different forms +--FILE-- +<?php + +define('a', 2); +const a = 1; + + +if (defined('a')) { + print a; +} + +?> +--EXPECTF-- +Notice: Constant a already defined in %s on line %d +2 |
