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/bug69955.phpt |
--TEST-- Bug #69955 (Segfault when trying to combine [] and assign-op on ArrayAccess object). --FILE-- <?php class C10 implements ArrayAccess { function offsetExists($offset) { echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); } function offsetGet($offset) { echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); return 100; } function offsetSet($offset, $value) { echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); var_dump($value); } function offsetUnset($offset) { echo "\nInside " . __METHOD__ . "\n"; var_dump($offset); } } $c10 = new C10; var_dump($c10[] += 5); --EXPECTF-- Inside C10::offsetGet NULL Inside C10::offsetSet NULL int(105) int(105)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare