cvs: php-src(PHP_5_2) /ext/filter/tests 035.phpt
| From: | Pierre-Alain Joye | Date: | Thu, 31 Aug 2006 22:17:44 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/filter/tests 035.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-40264@lists.php.net to get a copy of this message | ||
pajoye Thu Aug 31 22:17:44 2006 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/filter/tests 035.phpt
Log:
- MFH: test for mulitple filter calls
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/tests/035.phpt?view=markup&rev=1.1
Index: php-src/ext/filter/tests/035.phpt
+++ php-src/ext/filter/tests/035.phpt
--TEST--
GET/POST/REQUEST Test with input_get
--POST--
d=379
--GET--
ar[elm1]=1234&ar[elm2]=0660&a=0234
--FILE--
<?php
$ret = input_get(INPUT_GET, 'a', FILTER_VALIDATE_INT);
var_dump($ret);
$ret = input_get(INPUT_GET, 'a', FILTER_VALIDATE_INT,
array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
var_dump($ret);
$ret = input_get(INPUT_GET, 'ar', FILTER_VALIDATE_INT);
var_dump($ret);
$ret = input_get(INPUT_GET, 'ar', FILTER_VALIDATE_INT,
array('flags'=>FILTER_FLAG_ALLOW_OCTAL));
var_dump($ret);
?>
--EXPECT--
bool(false)
int(156)
array(2) {
["elm1"]=>
int(1234)
["elm2"]=>
bool(false)
}
array(2) {
["elm1"]=>
int(1234)
["elm2"]=>
int(432)
}