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 serialize() & unserialize() functions: resources --FILE-- <?php echo "\n--- ..
Decoded Output download
--- Testing Resource ---
Did this file decode correctly?
Original Code
--TEST--
Test serialize() & unserialize() functions: resources
--FILE--
<?php
echo "\n--- Testing Resource ---\n";
$file_handle = fopen( __FILE__, "r" );
$serialized_data = serialize( $file_handle );
fclose($file_handle);
var_dump($serialized_data);
var_dump(unserialize($serialized_data));
echo "\nDone";
?>
--EXPECTF--
--- Testing Resource ---
string(4) "i:%d;"
int(%d)
Done
Function Calls
fopen | 1 |
serialize | 1 |
Stats
MD5 | 576918cf29ed52ab9d9eaff9c008a733 |
Eval Count | 0 |
Decode Time | 95 ms |