mirror of
https://github.com/leonelquinteros/php-toml.git
synced 2025-01-17 20:38:16 +01:00
Remove debug prints
This commit is contained in:
parent
0e8a3b98f8
commit
0f4f19522e
@ -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
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