cvs: php-src(PHP_5_2) /ext/filter filter.c /ext/filter/tests 032.phpt bug7586.phpt bug7733.phpt
| From: | Pierre-Alain Joye | Date: | Sat, 22 Jul 2006 08:58:03 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/filter filter.c /ext/filter/tests 032.phpt bug7586.phpt bug7733.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39436@lists.php.net to get a copy of this message | ||
pajoye Sat Jul 22 08:58:03 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/filter filter.c
/php-src/ext/filter/tests 032.phpt bug7586.phpt bug7733.phpt
Log:
- API Shake up #1, use input type as first argument in input_get_args
(INPUT_GET/POST)
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/filter.c?r1=1.52.2.2&r2=1.52.2.3&diff_format=u
Index: php-src/ext/filter/filter.c
diff -u php-src/ext/filter/filter.c:1.52.2.2 php-src/ext/filter/filter.c:1.52.2.3
--- php-src/ext/filter/filter.c:1.52.2.2 Wed Jul 19 07:18:34 2006
+++ php-src/ext/filter/filter.c Sat Jul 22 08:58:03 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filter.c,v 1.52.2.2 2006/07/19 07:18:34 tony2001 Exp $ */
+/* $Id: filter.c,v 1.52.2.3 2006/07/22 08:58:03 pajoye Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -274,7 +274,7 @@
{
php_info_print_table_start();
php_info_print_table_row( 2, "Input Validation and Filtering", "enabled" );
- php_info_print_table_row( 2, "Revision", "$Revision: 1.52.2.2 $");
+ php_info_print_table_row( 2, "Revision", "$Revision: 1.52.2.3 $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -621,8 +621,8 @@
}
/* }}} */
-/* {{{ 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)
{
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/032.phpt?r1=1.1&r2=1.1.2.1&diff_format=u
Index: php-src/ext/filter/tests/032.phpt
diff -u php-src/ext/filter/tests/032.phpt:1.1 php-src/ext/filter/tests/032.phpt:1.1.2.1
--- php-src/ext/filter/tests/032.phpt:1.1 Sun May 14 13:54:10 2006
+++ php-src/ext/filter/tests/032.phpt Sat Jul 22 08:58:03 2006
@@ -29,7 +29,7 @@
);
-$myinputs = input_get_args($args, INPUT_DATA, $data);
+$myinputs = input_get_args(INPUT_DATA, $args, $data);
var_dump($myinputs);
?>
--EXPECT--
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/bug7586.phpt?r1=1.1&r2=1.1.2.1&diff_format=u
Index: php-src/ext/filter/tests/bug7586.phpt
diff -u php-src/ext/filter/tests/bug7586.phpt:1.1 php-src/ext/filter/tests/bug7586.phpt:1.1.2.1
--- php-src/ext/filter/tests/bug7586.phpt:1.1 Tue May 9 11:14:43 2006
+++ php-src/ext/filter/tests/bug7586.phpt Sat Jul 22 08:58:03 2006
@@ -27,7 +27,7 @@
)
);
-$out = input_get_args($args, INPUT_DATA, $data);
+$out = input_get_args(INPUT_DATA, $args, $data);
var_dump($out);
?>
--EXPECTF--
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/bug7733.phpt?r1=1.1&r2=1.1.2.1&diff_format=u
Index: php-src/ext/filter/tests/bug7733.phpt
diff -u php-src/ext/filter/tests/bug7733.phpt:1.1 php-src/ext/filter/tests/bug7733.phpt:1.1.2.1
--- php-src/ext/filter/tests/bug7733.phpt:1.1 Sun May 28 01:12:55 2006
+++ php-src/ext/filter/tests/bug7733.phpt Sat Jul 22 08:58:03 2006
@@ -1,5 +1,5 @@
--TEST--
-input_get_args() filter not reseted between elements
+filter_data() Float exponential weird result
--FILE--
<?php
$data = array(