diff options
| author | Felipe Pena <felipe@php.net> | 2008-06-03 14:07:15 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-06-03 14:07:15 +0000 |
| commit | 402fb5285d43d94597515847d6dbe822d2eb3130 (patch) | |
| tree | b10596a677400f9e7e5d45b5e59854665e93a18d /Zend/tests/magic_methods_005.phpt | |
| parent | fe0ef8b17c8d3c3671838e41322038f97d90c62b (diff) | |
| download | php-git-402fb5285d43d94597515847d6dbe822d2eb3130.tar.gz | |
- MFH: Fixed bug #44769 (declaring private magic methods should throw error)
Diffstat (limited to 'Zend/tests/magic_methods_005.phpt')
| -rw-r--r-- | Zend/tests/magic_methods_005.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/magic_methods_005.phpt b/Zend/tests/magic_methods_005.phpt new file mode 100644 index 0000000000..2cf84dc997 --- /dev/null +++ b/Zend/tests/magic_methods_005.phpt @@ -0,0 +1,12 @@ +--TEST-- +Testing __call() declaration in interface with wrong modifier +--FILE-- +<?php + +interface a { + static function __call($a, $b); +} + +?> +--EXPECTF-- +Fatal error: The magic method __call() must have public visibility and can not be static in %s on line %d |
