summaryrefslogtreecommitdiff
path: root/ext/filter/tests/bug44779.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/filter/tests/bug44779.phpt')
-rw-r--r--ext/filter/tests/bug44779.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/filter/tests/bug44779.phpt b/ext/filter/tests/bug44779.phpt
new file mode 100644
index 0000000..65a1e09
--- /dev/null
+++ b/ext/filter/tests/bug44779.phpt
@@ -0,0 +1,10 @@
+--TEST--
+Bug #44779 (filter returns NULL in CLI when it shouldn't)
+--SKIPIF--
+<?php if (!extension_loaded("filter")) die("skip"); ?>
+--FILE--
+<?php
+var_dump(filter_input(INPUT_SERVER, "PHP_SELF"));
+?>
+--EXPECTF--
+%unicode|string%(%d) "%s"