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/spl/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/spl/tests/bug34548.phpt |
--TEST-- Bug #34548 (Method append() in class extended from ArrayObject crashes PHP) --FILE-- <?php class Collection extends ArrayObject { public function add($dataArray) { foreach($dataArray as $value) $this->append($value); } public function offsetSet($index, $value) { parent::offsetSet($index, $value); } } $data1=array('one', 'two', 'three'); $data2=array('four', 'five'); $foo=new Collection($data1); $foo->add($data2); print_r($foo->getArrayCopy()); echo "Done\n"; ?> --EXPECT-- Array ( [0] => one [1] => two [2] => three [3] => four [4] => five ) Done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare