Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW) --FILE-- <?php ..

Decoded Output download

--TEST--
Bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW)
--FILE--
<?php

$file = __DIR__ .'/bug52508.ini';

file_put_contents($file, "a = 1");

$ini_array = parse_ini_file($file, true, INI_SCANNER_RAW);
var_dump($ini_array);

unlink($file);

?>
--EXPECT--
array(1) {
  ["a"]=>
  string(1) "1"
}

Did this file decode correctly?

Original Code

--TEST--
Bug #52508 (newline problem with parse_ini_file+INI_SCANNER_RAW)
--FILE--
<?php

$file = __DIR__ .'/bug52508.ini';

file_put_contents($file, "a = 1");

$ini_array = parse_ini_file($file, true, INI_SCANNER_RAW);
var_dump($ini_array);

unlink($file);

?>
--EXPECT--
array(1) {
  ["a"]=>
  string(1) "1"
}

Function Calls

None

Variables

None

Stats

MD5 c14b674890a028fc5d4b1df577acc410
Eval Count 0
Decode Time 79 ms