svn: /php/php-src/branches/PHP_5_3_2/ ext/filter/tests/bug50632.phpt
| From: | Johannes Schlüter | Date: | Thu, 28 Jan 2010 01:45:47 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_3_2/ ext/filter/tests/bug50632.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-61668@lists.php.net to get a copy of this message | ||
johannes Thu, 28 Jan 2010 01:45:47 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=294133
Log:
merge r293144 - Added test case for bug #50632 (iliaa)
Bug: http://bugs.php.net/50632 (Closed) Return default value
if var is undefined
Changed paths:
_U php/php-src/branches/PHP_5_3_2/
A + php/php-src/branches/PHP_5_3_2/ext/filter/tests/bug50632.phpt
(from php/php-src/branches/PHP_5_3/ext/filter/tests/bug50632.phpt:r293144)
Property changes on: php/php-src/branches/PHP_5_3_2
___________________________________________________________________
Modified: svn:mergeinfo
-
/php/php-src/branches/PHP_5_3:292504,292574,292594-292595,292611,292624,292630,292632-292635,292654,292677,292682-292683,292693,292719,292762,292765,292771,292777,292823,293051,293075,293114,293126,293131,293974
/php/php-src/trunk:284726
+
/php/php-src/branches/PHP_5_3:292504,292574,292594-292595,292611,292624,292630,292632-292635,292654,292677,292682-292683,292693,292719,292762,292765,292771,292777,292823,293051,293075,293114,293126,293131,293144,293974
/php/php-src/trunk:284726
Copied: php/php-src/branches/PHP_5_3_2/ext/filter/tests/bug50632.phpt (from rev 293144,
php/php-src/branches/PHP_5_3/ext/filter/tests/bug50632.phpt)
===================================================================
--- php/php-src/branches/PHP_5_3_2/ext/filter/tests/bug50632.phpt (rev 0)
+++ php/php-src/branches/PHP_5_3_2/ext/filter/tests/bug50632.phpt 2010-01-28 01:45:47 UTC (rev
294133)
@@ -0,0 +1,11 @@
+--TEST--
+bug 50632, filter_input() does not return default value if the variable does not exist
+--SKIPIF--
+<?php if (!extension_loaded("filter")) die("skip"); ?>
+--FILE--
+<?php
+$foo = filter_input(INPUT_GET, 'foo', FILTER_VALIDATE_INT, array('flags' =>
FILTER_REQUIRE_SCALAR, 'options' => array('default' => 23)));
+var_dump($foo);
+?>
+--EXPECT--
+int(23)