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/call_user_func_008.phpt |
--TEST-- call_user_func() behavior with references --FILE-- <?php function test(&$ref1, &$ref2) { $ref1 += 42; $ref2 -= 42; return true; } $i = $j = 0; var_dump(call_user_func('test', $i, $j)); var_dump($i, $j); var_dump(call_user_func_array('test', [$i, $j])); var_dump($i, $j); $x =& $i; $y =& $j; var_dump(call_user_func('test', $i, $j)); var_dump($i, $j); var_dump(call_user_func_array('test', [$i, $j])); var_dump($i, $j); ?> --EXPECTF-- Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d bool(true) int(0) int(0) Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d bool(true) int(0) int(0) Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d bool(true) int(0) int(0) Warning: Parameter 1 to test() expected to be a reference, value given in %s on line %d Warning: Parameter 2 to test() expected to be a reference, value given in %s on line %d bool(true) int(0) int(0)
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare