cvs: ZendEngine2(PHP_5_3) /tests access_modifiers_009.phpt

[email protected] ("Felipe Pena")
Newsgroups php.zend-engine.cvs
Message-ID <cvsfelipe1205254567@cvsserver>
felipe		Tue Mar 11 16:56:07 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /ZendEngine2/tests	access_modifiers_009.phpt 
  Log:
  Add new test (bug reported in internals list by Robin)
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/access_modifiers_009.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/access_modifiers_009.phpt
+++ ZendEngine2/tests/access_modifiers_009.phpt
--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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.