/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
Zend
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/Zend/tests/bug21888.phpt
--TEST-- Bug #21888 (protected property and protected method of the same name) --FILE-- <?php class mom { protected $prot = "protected property\n"; protected function prot() { print "protected method\n"; } } class child extends mom { public function callMom() { $this->prot(); } public function viewMom() { print $this->prot; } } $c = new child(); $c->callMom(); $c->viewMom(); ?> --EXPECT-- protected method protected property
Copyright ©2k19 -
Hexid
|
Tex7ure