mirror of
https://github.com/leonelquinteros/php-toml.git
synced 2025-01-17 12:28:16 +01:00
Remove debug prints
This commit is contained in:
parent
0e8a3b98f8
commit
0f4f19522e
@ -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)
|
||||
|
10
toml-test/debug.php
Normal file
10
toml-test/debug.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
require('../src/Toml.php');
|
||||
|
||||
$toml = "answer = 42
|
||||
neganswer = -42";
|
||||
|
||||
$result = Toml::parse($toml);
|
||||
|
||||
echo json_encode($result);
|
Loading…
x
Reference in New Issue
Block a user