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 #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex) --FILE-- <?p..

Decoded Output download

--TEST--
Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex)
--FILE--
<?php
$fp = fopen("php://memory", "r+");
fwrite($fp, str_repeat("baad", 1024*1024));
rewind($fp);
stream_get_line($fp, 1024*1024*2, "aaaa");
echo "Done
";
?>
--EXPECT--
Done

Did this file decode correctly?

Original Code

--TEST--
Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex)
--FILE--
<?php
$fp = fopen("php://memory", "r+");
fwrite($fp, str_repeat("baad", 1024*1024));
rewind($fp);
stream_get_line($fp, 1024*1024*2, "aaaa");
echo "Done\n";
?>
--EXPECT--
Done

Function Calls

fopen 1
str_repeat 1

Variables

$fp True

Stats

MD5 34b21e853bdee99b15ffc419972be3b8
Eval Count 0
Decode Time 92 ms