/
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/bug76869.phpt
--TEST-- Bug #76869 (Incorrect bypassing protected method accessibility check) --FILE-- <?php class A { private function f() { return "A"; } } class B extends A { protected function f() { return "B"; } } $b = new B(); try { var_dump($b->f()); } catch (Throwable $e) { echo "Exception: ", $e->getMessage(), "\n"; } ?> --EXPECT-- Exception: Call to protected method B::f() from global scope
Copyright ©2k19 -
Hexid
|
Tex7ure