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 #48768 (parse_ini_*() crashes with INI_SCANNER_RAW) --FILE-- <?php $ini_loca..
Decoded Output download
--TEST--
Bug #48768 (parse_ini_*() crashes with INI_SCANNER_RAW)
--FILE--
<?php
$ini_location = __DIR__ . '/bug48768.tmp';
// Build ini data
$ini_data = <<< EOT
equal = "="
EOT;
// Save ini data to file
file_put_contents($ini_location, $ini_data);
var_dump(parse_ini_file($ini_location, false, INI_SCANNER_RAW));
var_dump(parse_ini_file($ini_location, false, INI_SCANNER_NORMAL));
?>
--CLEAN--
<?php @unlink(__DIR__ . '/bug48768.tmp'); ?>
--EXPECT--
array(1) {
["equal"]=>
string(1) "="
}
array(1) {
["equal"]=>
string(1) "="
}
Did this file decode correctly?
Original Code
--TEST--
Bug #48768 (parse_ini_*() crashes with INI_SCANNER_RAW)
--FILE--
<?php
$ini_location = __DIR__ . '/bug48768.tmp';
// Build ini data
$ini_data = <<< EOT
equal = "="
EOT;
// Save ini data to file
file_put_contents($ini_location, $ini_data);
var_dump(parse_ini_file($ini_location, false, INI_SCANNER_RAW));
var_dump(parse_ini_file($ini_location, false, INI_SCANNER_NORMAL));
?>
--CLEAN--
<?php @unlink(__DIR__ . '/bug48768.tmp'); ?>
--EXPECT--
array(1) {
["equal"]=>
string(1) "="
}
array(1) {
["equal"]=>
string(1) "="
}
Function Calls
None |
Stats
MD5 | a7a269d7ad0ab2c5b4231d828dda6e86 |
Eval Count | 0 |
Decode Time | 86 ms |