mirror of
https://github.com/php/php-src.git
synced 2024-12-02 06:13:40 +08:00
- API Shake up #1, use input type as first argument in input_get_args
(INPUT_GET/POST)
This commit is contained in:
parent
1223119155
commit
697f4e1f08
@ -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)
|
||||
{
|
||||
|
@ -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--
|
||||
|
@ -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--
|
||||
|
@ -1,5 +1,5 @@
|
||||
--TEST--
|
||||
input_get_args() filter not reseted between elements
|
||||
filter_data() Float exponential weird result
|
||||
--FILE--
|
||||
<?php
|
||||
$data = array(
|
||||
|
Loading…
Reference in New Issue
Block a user