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 : /usr/local/src/php7/php-7.0.5/ext/reflection/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/reflection/tests/bug38653.phpt |
--TEST-- Bug #38653 (memory leak in ReflectionClass::getConstant()) --FILE-- <?php class foo { const cons = 10; const cons1 = ""; const cons2 = "test"; } class bar extends foo { } $foo = new ReflectionClass("foo"); var_dump($foo->getConstant("cons")); var_dump($foo->getConstant("cons1")); var_dump($foo->getConstant("cons2")); var_dump($foo->getConstant("no such const")); echo "Done\n"; ?> --EXPECTF-- int(10) string(0) "" string(4) "test" bool(false) Done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare