Remove debug prints

This commit is contained in:
Leonel Quinteros 2015-03-27 18:23:53 -03:00
parent 0e8a3b98f8
commit 0f4f19522e
2 changed files with 11 additions and 2 deletions

View File

@ -77,7 +77,6 @@ class Toml
// Split lines // Split lines
$aToml = explode("\n", $toml); $aToml = explode("\n", $toml);
print_r($aToml);
//foreach($aToml as $line) //foreach($aToml as $line)
for($ln = 0; $ln < count($aToml); $ln++) for($ln = 0; $ln < count($aToml); $ln++)
@ -310,7 +309,7 @@ class Toml
$openLString = !$openLString; $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 // Reserved special characters inside strings should produce error
if($openString) if($openString)

10
toml-test/debug.php Normal file
View File

@ -0,0 +1,10 @@
<?php
require('../src/Toml.php');
$toml = "answer = 42
neganswer = -42";
$result = Toml::parse($toml);
echo json_encode($result);