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/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/bug64417.phpt |
--TEST-- Bug #64417 (BC break: ArrayAccess::&offsetGet() in a trait causes fatal error) --FILE-- <?php trait aa { private $container = array(); public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } public function offsetExists($offset) { return isset($this->container[$offset]); } public function offsetUnset($offset) { unset($this->container[$offset]); } public function &offsetGet($offset) { $result = null; if (isset($this->container[$offset])) { $result = &$this->container[$offset]; } return $result; } } class obj implements ArrayAccess { use aa; } $o = new obj; $o['x'] = 1; ++$o['x']; echo $o['x'], "\n"; --EXPECT-- 2
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare