Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/bug75079_2.phpt |
--TEST-- Bug #75079 variation without traits --FILE-- <?php class Foo { private static $bar = 123; static function test(){ return function(){ return function(){ return Foo::$bar; }; }; } } $f = Foo::test(); var_dump($f()()); class A{} $a = new A; var_dump($f->bindTo($a, A::CLASS)()()); ?> --EXPECTF-- int(123) Fatal error: Uncaught Error: Cannot access private property Foo::$bar in %s:%d Stack trace: #0 %s(%d): A->{closure}() #1 {main} thrown in %s on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare