From: Johannes Schlüter Date: Thu, 28 Jan 2010 01:45:47 +0000 (+0000) Subject: merge r293144 - Added test case for bug #50632 (iliaa) X-Git-Tag: php-5.3.2RC2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e31a3f01d942668aacc3cf9592ad79648caad1b9;p=php merge r293144 - Added test case for bug #50632 (iliaa) --- diff --git a/ext/filter/tests/bug50632.phpt b/ext/filter/tests/bug50632.phpt new file mode 100644 index 0000000000..2f33b91ff7 --- /dev/null +++ b/ext/filter/tests/bug50632.phpt @@ -0,0 +1,11 @@ +--TEST-- +bug 50632, filter_input() does not return default value if the variable does not exist +--SKIPIF-- + +--FILE-- + FILTER_REQUIRE_SCALAR, 'options' => array('default' => 23))); +var_dump($foo); +?> +--EXPECT-- +int(23)