From e31a3f01d942668aacc3cf9592ad79648caad1b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Johannes=20Schl=C3=BCter?= Date: Thu, 28 Jan 2010 01:45:47 +0000 Subject: [PATCH] merge r293144 - Added test case for bug #50632 (iliaa) --- ext/filter/tests/bug50632.phpt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ext/filter/tests/bug50632.phpt 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) -- 2.50.1