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/ext/intl/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/intl/tests/bug62915-2.phpt |
--TEST-- Bug #62915: cloning of several classes is defective --SKIPIF-- <?php if (!extension_loaded('intl')) die('skip intl extension not enabled'); if (!class_exists('Spoofchecker')) die('skip intl extension does not have spoof checker'); --FILE-- <?php class A extends IntlDateFormatter { static $ARGS = array("en_US" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/Los_Angeles', IntlDateFormatter::GREGORIAN); } class B extends NumberFormatter { static $ARGS = array('de_DE', NumberFormatter::DECIMAL); } class C extends MessageFormatter { static $ARGS = array("en_US", "foo"); } class D extends Spoofchecker { static $ARGS = array(); } foreach (range('A', 'D') as $subclass) { $rc = new ReflectionClass($subclass); $obj = $rc->newInstanceArgs($subclass::$ARGS); $clone = clone $obj; var_dump(get_class($clone)); } --EXPECT-- string(1) "A" string(1) "B" string(1) "C" string(1) "D"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare