/2.0/Tests/Variables/func_get_args.php
PHP | 26 lines | 18 code | 3 blank | 5 comment | 0 complexity | 6bb88e9909f40d1af294aa0badf94f36 MD5 | raw file
Possible License(s): CPL-1.0, GPL-2.0, CC-BY-SA-3.0, MPL-2.0-no-copyleft-exception, Apache-2.0
- [expect php]
- [file]
- <?
- /*
-
- Checks whether references are correctly dereferenced when calling args-aware function by name.
-
- */
-
- function f($a)
- {
- $args = func_get_args();
- var_dump($args);
- $args[0] = 4;
- }
-
- function g()
- {
- $a = 1;
- $f = "f";
- $f($a);
- var_dump($a);
- }
-
- g();
- ?>