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-- Test function gzfile() by substituting argument 1 with float values. --EXTENSIONS..
Decoded Output download
--TEST--
Test function gzfile() by substituting argument 1 with float values.
--EXTENSIONS--
zlib
--FILE--
<?php
$use_include_path = false;
$variation = array(
'float 10.5' => 10.5,
'float -10.5' => -10.5,
'float 12.3456789000e10' => 12.3456789000e10,
'float -12.3456789000e10' => -12.3456789000e10,
'float .5' => .5,
);
foreach ( $variation as $var ) {
var_dump(gzfile( $var , $use_include_path ) );
}
?>
--EXPECTF--
Warning: gzfile(10.5): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(-10.5): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(123456789000): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(-123456789000): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(0.5): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Did this file decode correctly?
Original Code
--TEST--
Test function gzfile() by substituting argument 1 with float values.
--EXTENSIONS--
zlib
--FILE--
<?php
$use_include_path = false;
$variation = array(
'float 10.5' => 10.5,
'float -10.5' => -10.5,
'float 12.3456789000e10' => 12.3456789000e10,
'float -12.3456789000e10' => -12.3456789000e10,
'float .5' => .5,
);
foreach ( $variation as $var ) {
var_dump(gzfile( $var , $use_include_path ) );
}
?>
--EXPECTF--
Warning: gzfile(10.5): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(-10.5): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(123456789000): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(-123456789000): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Warning: gzfile(0.5): Failed to open stream: No such file or directory in %s on line %d
bool(false)
Function Calls
gzfile | 1 |
Stats
MD5 | fd3d5b300ba15f0db7163eb7a677e8b4 |
Eval Count | 0 |
Decode Time | 124 ms |