Arquivos
hhvm/hphp/test/quick/func_get_args_namespace.php
T
Eric Caruso 6eba57f898 Make func_get_args and friends work with namespaces
func_get_args would only return declared parameters
when used inside of namespaces. This allows it to work correctly
in that case.

Closes #832
2013-07-06 11:12:23 -07:00

10 linhas
121 B
PHP

<?php
namespace foo {
function bar($a, $b) {
var_dump(func_num_args(), func_get_args());
}
bar(1,2,3,4,5);
}