diff options
author | Antony Dovgal <tony2001@php.net> | 2007-11-13 16:52:14 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-11-13 16:52:14 +0000 |
commit | 714aad97e76f8e4213be870abbf72a37931a9710 (patch) | |
tree | d8a293df414e91b04711ff273ceb990b267ed5a0 /Zend/tests/access_modifiers_002.phpt | |
parent | b710c61f34f6719c673a1229c590e2a7a362144d (diff) | |
download | php-git-714aad97e76f8e4213be870abbf72a37931a9710.tar.gz |
MFH: disallow multiple access modifiers and 'abstract abstract' methods (patch by Etienne Kneuss)
add tests
Diffstat (limited to 'Zend/tests/access_modifiers_002.phpt')
-rw-r--r-- | Zend/tests/access_modifiers_002.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/access_modifiers_002.phpt b/Zend/tests/access_modifiers_002.phpt new file mode 100644 index 0000000000..cc5df306f1 --- /dev/null +++ b/Zend/tests/access_modifiers_002.phpt @@ -0,0 +1,13 @@ +--TEST-- +using multiple access modifiers (attributes) +--FILE-- +<?php + +class test { + static public public static final public final $var; +} + +echo "Done\n"; +?> +--EXPECTF-- +Fatal error: Multiple access type modifiers are not allowed in %s on line %d |