diff options
author | Felipe Pena <felipe@php.net> | 2008-03-11 16:56:06 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-03-11 16:56:06 +0000 |
commit | fec00fd374e920432b279527a9755781ca4d0082 (patch) | |
tree | 44dd99c507709bb587797ace56189bc895f3ac3c /Zend | |
parent | 7a9bfa905588dc25d3323fb09b06f337d4d926f1 (diff) | |
download | php-git-fec00fd374e920432b279527a9755781ca4d0082.tar.gz |
Add new test (bug reported in internals list by Robin)
Diffstat (limited to 'Zend')
-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 |