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-- E_ERROR during UserStream Open --FILE-- <?php class FailStream { public functi..
Decoded Output download
--TEST--
E_ERROR during UserStream Open
--FILE--
<?php
class FailStream {
public function stream_open($path, $mode, $options, &$opened_path) {
_some_undefined_function();
}
}
stream_wrapper_register('mystream', 'FailStream');
fopen('mystream://foo', 'r');
echo 'Done';
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to undefined function _some_undefined_function() in %s%euser-stream-error.php:%d
Stack trace:
#0 [internal function]: FailStream->stream_open('mystream://foo', 'r', 0, NULL)
#1 %s%euser-stream-error.php(%d): fopen('mystream://foo', 'r')
#2 {main}
thrown in %s%euser-stream-error.php on line %d
Did this file decode correctly?
Original Code
--TEST--
E_ERROR during UserStream Open
--FILE--
<?php
class FailStream {
public function stream_open($path, $mode, $options, &$opened_path) {
_some_undefined_function();
}
}
stream_wrapper_register('mystream', 'FailStream');
fopen('mystream://foo', 'r');
echo 'Done';
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to undefined function _some_undefined_function() in %s%euser-stream-error.php:%d
Stack trace:
#0 [internal function]: FailStream->stream_open('mystream://foo', 'r', 0, NULL)
#1 %s%euser-stream-error.php(%d): fopen('mystream://foo', 'r')
#2 {main}
thrown in %s%euser-stream-error.php on line %d
Function Calls
None |
Stats
MD5 | b6e27c5ff9f8996848085df3d631ae0c |
Eval Count | 0 |
Decode Time | 78 ms |