summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-07-24 09:11:48 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-07-24 09:11:48 +0000
commit6688c798e19a952841dc0090028133469252856f (patch)
treef393f8da199facb2ed76fe7af15a95beb7fcf025 /ext
parent64a04a58a6c8b67e8fef54b420ce6d36692efa64 (diff)
downloadphp-git-6688c798e19a952841dc0090028133469252856f.tar.gz
Allow filters to work on INPUT_SERVER in CLI (bug #44779)
Diffstat (limited to 'ext')
-rw-r--r--ext/filter/tests/bug44779.phpt8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/filter/tests/bug44779.phpt b/ext/filter/tests/bug44779.phpt
new file mode 100644
index 0000000000..33a4fe4ffb
--- /dev/null
+++ b/ext/filter/tests/bug44779.phpt
@@ -0,0 +1,8 @@
+--TEST--
+Bug #44779 (filter returns NULL in CLI when it shouldn't)
+--FILE--
+<?php
+var_dump(filter_input(INPUT_SERVER, "PHP_SELF"));
+?>
+--EXPECTF--
+%unicode|string%(%d) "%s"