Skip to content

Commit efa5674

Browse files
committed
Merge branch 'PHP-7.1' into PHP-7.2
2 parents 879c937 + f42d7bd commit efa5674

File tree

4 files changed

+140
-86
lines changed

4 files changed

+140
-86
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ PHP NEWS
2929
. Fixed bug #66430 (ReflectionFunction::invoke does not invoke closure with
3030
object scope). (Nikita)
3131

32+
- Standard:
33+
. Fixed bug #76965 (INI_SCANNER_RAW doesn't strip trailing whitespace).
34+
(Pierrick)
35+
3236
11 Oct 2018, PHP 7.2.11
3337

3438
- Core:

Zend/tests/bug76965.phpt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
--TEST--
2+
Bug #76965 (INI_SCANNER_RAW doesn't strip trailing whitespace)
3+
--FILE--
4+
<?php
5+
// the trailing whitespace is intentional
6+
$ini = <<<END
7+
1="foo"
8+
2="bar" ; comment
9+
3= baz
10+
4= "foo;bar"
11+
5= "foo" ; bar ; baz
12+
6= "foo;bar" ; baz
13+
7= foo"bar ; "ok
14+
END;
15+
16+
var_dump(parse_ini_string($ini, false, INI_SCANNER_RAW));
17+
?>
18+
===DONE===
19+
--EXPECT--
20+
array(7) {
21+
[1]=>
22+
string(3) "foo"
23+
[2]=>
24+
string(3) "bar"
25+
[3]=>
26+
string(3) "baz"
27+
[4]=>
28+
string(7) "foo;bar"
29+
[5]=>
30+
string(3) "foo"
31+
[6]=>
32+
string(7) "foo;bar"
33+
[7]=>
34+
string(7) "foo"bar"
35+
}
36+
===DONE===

0 commit comments

Comments
 (0)