- API Shake up #1, use input type as first argument in input_get_args

(INPUT_GET/POST)
This commit is contained in:
Pierre Joye 2006-07-22 08:58:03 +00:00
parent 1223119155
commit 697f4e1f08
4 changed files with 5 additions and 5 deletions

View File

@ -621,8 +621,8 @@ PHP_FUNCTION(input_get)
}
/* }}} */
/* {{{ proto mixed input_get_args(array definition, constant type [, array data])
* Returns an array with all arguments defined in 'definition'.
/* {{{ proto mixed input_get_args(constant type, array definition, [, array data])
* Returns an array with all arguments defined in 'definition'. INPUT_DATA will use the data given as last argument.
*/
PHP_FUNCTION(input_get_args)
{

View File

@ -29,7 +29,7 @@ $args = array(
);
$myinputs = input_get_args($args, INPUT_DATA, $data);
$myinputs = input_get_args(INPUT_DATA, $args, $data);
var_dump($myinputs);
?>
--EXPECT--

View File

@ -27,7 +27,7 @@ $args = array(
)
);
$out = input_get_args($args, INPUT_DATA, $data);
$out = input_get_args(INPUT_DATA, $args, $data);
var_dump($out);
?>
--EXPECTF--

View File

@ -1,5 +1,5 @@
--TEST--
input_get_args() filter not reseted between elements
filter_data() Float exponential weird result
--FILE--
<?php
$data = array(