I should also say making the following change does not cause a segfault and the code works as expected.
<?php
//echo base64_encode('printf("output text");'); // Generates the string used below
$decoded = base64_decode('cHJpbnRmKCJvdXRwdXQgdGV4dCIpOw==');
eval($decoded); // Should print 'output text', and it does!
?>
I should also say making the following change does not cause a segfault and the code works as expected.
<?php encode( 'printf( "output text");'); // Generates the string used below decode( 'cHJpbnRmKCJvdX RwdXQgdGV4dCIpO w==');
//echo base64_
$decoded = base64_
eval($decoded); // Should print 'output text', and it does!
?>