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/bug71914.phpt |
--TEST-- Bug #71914 (Reference is lost in "switch") --FILE-- <?php function bug(&$value) { switch ($value) { case "xxxx": $value = true; break; } } function returnArray() { $array = array(); $array["str"] = "xxxx"; return $array; } class Foo { public $array = array("str" => "xxxx"); } function test($arr, &$dummy) { bug($arr["str"]); var_dump($arr["str"]); } $foo = new Foo(); $arr = returnArray(); $array = array("str" => "xxxx"); test($array, $array["str"]); test($arr, $arr["str"]); test($foo->array, $foo->array["str"]); ?> --EXPECT-- bool(true) bool(true) bool(true)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare