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-- Crash inside stream_get_line(), when length=0 --FILE-- <?php $path = __DIR__ . '/..
Decoded Output download
--TEST--
Crash inside stream_get_line(), when length=0
--FILE--
<?php
$path = __DIR__ . '/test.html';
file_put_contents($path, "foo<br>bar<br>foo");
$fp = fopen($path, "r");
while ($fp && !feof($fp)) {
echo stream_get_line($fp, 0, "<br>")."
";
}
fclose($fp);
@unlink($path);
?>
--EXPECT--
foo
bar
foo
Did this file decode correctly?
Original Code
--TEST--
Crash inside stream_get_line(), when length=0
--FILE--
<?php
$path = __DIR__ . '/test.html';
file_put_contents($path, "foo<br>bar<br>foo");
$fp = fopen($path, "r");
while ($fp && !feof($fp)) {
echo stream_get_line($fp, 0, "<br>")."\n";
}
fclose($fp);
@unlink($path);
?>
--EXPECT--
foo
bar
foo
Function Calls
None |
Stats
MD5 | a87eb4c44475696e8cb9502e2e2800e4 |
Eval Count | 0 |
Decode Time | 90 ms |