PHP  
 PHP_5_3
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for Zend/tests/access_modifiers_009.phpt ('Inconsistencies when accessing protected members - 2')

Script

1: <?php
2:
3:
class {
4:     static protected function 
f() {return 'A::f()';}
5: }
6: class 
B1 extends {
7:     static protected function 
f() {return 'B1::f()';}
8: }
9: class 
B2 extends {
10:     static public function 
test() {
11:         
var_dump(is_callable('B1::f'));
12:         
B1::f();
13:     }
14: }
15:
B2::test();
16:
17:
?>
18:

Expected

bool(false)

Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d

Output

bool(false)

Diff

002- 
003- Fatal error: Call to protected method B1::f() from context 'B2' in %s on line %d

 

Generated at Fri, 18 Apr 2014 07:01:42 +0000 (5 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.