Skip to content

Commit 30d89b1

Browse files
jcmcmb69
authored andcommitted
QA - mb_http_input - function returns FALSE for type 'L' or 'l'
Closes phpGH-9018.
1 parent 7dcd8f8 commit 30d89b1

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
mb_http_input() - Returns FALSE for $type 'L' or 'l'
3+
--EXTENSIONS--
4+
mbstring
5+
--INI--
6+
input_encoding=-1
7+
--FILE--
8+
<?php
9+
var_dump(mb_http_input('L'));
10+
var_dump(mb_http_input('l'));
11+
?>
12+
--EXPECT--
13+
Warning: PHP Startup: INI setting contains invalid encoding "-1" in Unknown on line 0
14+
15+
Warning: PHP Startup: INI setting contains invalid encoding "-1" in Unknown on line 0
16+
bool(false)
17+
bool(false)

0 commit comments

Comments
 (0)