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 compress.zlib:// scheme with the unlink function --EXTENSIONS-- zlib --FILE-..
Decoded Output download
--TEST--
Test compress.zlib:// scheme with the unlink function
--EXTENSIONS--
zlib
--FILE--
<?php
$inputFileName = __DIR__."/004.txt.gz";
$srcFile = "compress.zlib://$inputFileName";
rename($srcFile, 'something.tmp');
var_dump(file_exists($inputFileName));
?>
--EXPECTF--
Warning: rename(): ZLIB wrapper does not support renaming in %s on line %d
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Test compress.zlib:// scheme with the unlink function
--EXTENSIONS--
zlib
--FILE--
<?php
$inputFileName = __DIR__."/004.txt.gz";
$srcFile = "compress.zlib://$inputFileName";
rename($srcFile, 'something.tmp');
var_dump(file_exists($inputFileName));
?>
--EXPECTF--
Warning: rename(): ZLIB wrapper does not support renaming in %s on line %d
bool(true)
Function Calls
None |
Stats
MD5 | 6d4d233b32661419d9005e85bd5eb4ee |
Eval Count | 0 |
Decode Time | 69 ms |