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 #71287 (Error message contains hexadecimal instead of decimal number) --FILE-..
Decoded Output download
--TEST--
Bug #71287 (Error message contains hexadecimal instead of decimal number)
--FILE--
<?php
class Stream {
public function stream_open($path, $mode, $options, $opened_path) {
return true;
}
public function stream_write($data) {
return strlen($data) - 2;
}
}
stream_wrapper_register('test', Stream::class);
file_put_contents('test://file.txt', 'foobarbaz');
?>
--EXPECTF--
Warning: file_put_contents(): Only 7 of 9 bytes written, possibly out of free disk space in %sbug71287.php on line %d
Did this file decode correctly?
Original Code
--TEST--
Bug #71287 (Error message contains hexadecimal instead of decimal number)
--FILE--
<?php
class Stream {
public function stream_open($path, $mode, $options, $opened_path) {
return true;
}
public function stream_write($data) {
return strlen($data) - 2;
}
}
stream_wrapper_register('test', Stream::class);
file_put_contents('test://file.txt', 'foobarbaz');
?>
--EXPECTF--
Warning: file_put_contents(): Only 7 of 9 bytes written, possibly out of free disk space in %sbug71287.php on line %d
Function Calls
None |
Stats
MD5 | 5eeb1052f4e94457ac63db1969289d74 |
Eval Count | 0 |
Decode Time | 88 ms |