diff options
| author | Felipe Pena <felipe@php.net> | 2008-03-11 16:55:33 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2008-03-11 16:55:33 +0000 |
| commit | 6c9acc4aa7a61d674981849a3e9056bc898ed8e9 (patch) | |
| tree | 024f090d2b4ab1dcec30d30c3038d596d32a94c2 /Zend/tests/access_modifiers_009.phpt | |
| parent | 7720de73398ed0dee1e8d00c05888e49e18a72c6 (diff) | |
| download | php-git-6c9acc4aa7a61d674981849a3e9056bc898ed8e9.tar.gz | |
Add new test (bug reported in internals list by Robin)
Diffstat (limited to 'Zend/tests/access_modifiers_009.phpt')
| -rw-r--r-- | Zend/tests/access_modifiers_009.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Zend/tests/access_modifiers_009.phpt b/Zend/tests/access_modifiers_009.phpt new file mode 100644 index 0000000000..b377ce4d97 --- /dev/null +++ b/Zend/tests/access_modifiers_009.phpt @@ -0,0 +1,24 @@ +--TEST-- +Inconsistencies when accessing protected members - 2 +--FILE-- +<?php + +class A { + static protected function f() {return 'A::f()';} +} +class B1 extends A { + static protected function f() {return 'B1::f()';} +} +class B2 extends A { + static public function test() { + var_dump(is_callable('B1::f')); + B1::f(); + } +} +B2::test(); + +?> +--EXPECTF-- +bool(false) + +Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d |
