1--TEST-- 2Bug #51899 (Parse error in parse_ini_file() function when empy value followed by no newline) 3--FILE-- 4<?php 5 6var_dump(parse_ini_string('a=')); 7var_dump(parse_ini_string('a= ')); 8var_dump(parse_ini_string('a='.PHP_EOL)); 9var_dump(parse_ini_string('a=b ')); 10var_dump(parse_ini_string('')); 11var_dump(parse_ini_string("\0")); 12 13?> 14--EXPECT-- 15array(1) { 16 ["a"]=> 17 string(0) "" 18} 19array(1) { 20 ["a"]=> 21 string(0) "" 22} 23array(1) { 24 ["a"]=> 25 string(0) "" 26} 27array(1) { 28 ["a"]=> 29 string(2) "b " 30} 31array(0) { 32} 33array(0) { 34} 35