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/bug64264.phpt |
--TEST-- Bug #64264 (SPLFixedArray toArray problem) --FILE-- <?php class MyFixedArray extends \SplFixedArray { protected $foo; protected $bar; } $myFixedArr = new MyFixedArray(1); $myFixedArr[0] = 'foo'; $myFixedArr->setSize(2); $myFixedArr[1] = 'bar'; $myFixedArr->setSize(5); $array = $myFixedArr->toArray(); $array[2] = "ERROR"; $array[3] = "ERROR"; $array[4] = "ERROR"; unset($array[4]); $myFixedArr->setSize(2); print_r($myFixedArr->toArray()); ?> --EXPECTF-- Array ( [0] => foo [1] => bar )
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare