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/bug67633.phpt |
--TEST-- Bug #67633: A foreach on an array returned from a function not doing copy-on-write --FILE-- <?php function id($x) { return $x; } function &ref_id(&$x) { return $x; } $c = 'c'; $array = ['a', 'b', $c]; foreach(id($array) as &$v) { $v .= 'q'; } var_dump($array); foreach(ref_id($array) as &$v) { $v .= 'q'; } var_dump($array); ?> --EXPECT-- array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" } array(3) { [0]=> string(2) "aq" [1]=> string(2) "bq" [2]=> &string(2) "cq" }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare