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-- php_strip_whitespace() and output buffer --SKIPIF-- <?php if( substr(PHP_OS, 0, 3..
Decoded Output download
--TEST--
php_strip_whitespace() and output buffer
--SKIPIF--
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
--FILE--
<?php
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
var_dump(php_strip_whitespace($file));
var_dump(ob_get_contents());
?>
--EXPECTF--
Warning: php_strip_whitespace(%s): Failed to open stream: File%Sname too long in %s007.php on line %d
string(0) ""
bool(false)
Did this file decode correctly?
Original Code
--TEST--
php_strip_whitespace() and output buffer
--SKIPIF--
<?php if( substr(PHP_OS, 0, 3) == "WIN") die('skip Non windows test');?>
--FILE--
<?php
$file = str_repeat("A", PHP_MAXPATHLEN - strlen(__DIR__ . DIRECTORY_SEPARATOR . __FILE__));
var_dump(php_strip_whitespace($file));
var_dump(ob_get_contents());
?>
--EXPECTF--
Warning: php_strip_whitespace(%s): Failed to open stream: File%Sname too long in %s007.php on line %d
string(0) ""
bool(false)
Function Calls
None |
Stats
MD5 | 3962e477b2c191257b06390852a361b2 |
Eval Count | 0 |
Decode Time | 86 ms |