diff --git a/src/Toml.php b/src/Toml.php index 4ef0926..bd426d5 100755 --- a/src/Toml.php +++ b/src/Toml.php @@ -77,7 +77,6 @@ class Toml // Split lines $aToml = explode("\n", $toml); - print_r($aToml); //foreach($aToml as $line) for($ln = 0; $ln < count($aToml); $ln++) @@ -310,7 +309,7 @@ class Toml $openLString = !$openLString; } } - elseif($toml[$i] == "\\" && !in_array($toml[$i+1], array('0', 't', 'n', 'r', "u", '"', "\\"))) + elseif($toml[$i] == "\\" && !in_array($toml[$i+1], array('0', 't', 'n', 'r', "u", "U", '"', "\\"))) { // Reserved special characters inside strings should produce error if($openString) diff --git a/toml-test/debug.php b/toml-test/debug.php new file mode 100644 index 0000000..49a1a74 --- /dev/null +++ b/toml-test/debug.php @@ -0,0 +1,10 @@ +