/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug37816.phpt
--TEST-- Bug #37816 (ReflectionProperty does not throw exception when accessing protected attribute) --FILE-- <?php class TestClass { protected $p = 2; } $o = new TestClass; $r = new ReflectionProperty($o, 'p'); try { $x = $r->getValue($o); } catch (Exception $e) { echo 'Caught: ' . $e->getMessage() . "\n"; } ?> --EXPECT-- Caught: Cannot access non-public property TestClass::$p
Copyright ©2k19 -
Hexid
|
Tex7ure