1--TEST-- 2Test serialize() & unserialize() functions: resources 3--FILE-- 4<?php 5echo "\n--- Testing Resource ---\n"; 6$file_handle = fopen( __FILE__, "r" ); 7$serialized_data = serialize( $file_handle ); 8fclose($file_handle); 9var_dump($serialized_data); 10var_dump(unserialize($serialized_data)); 11 12echo "\nDone"; 13?> 14--EXPECTF-- 15--- Testing Resource --- 16string(4) "i:%d;" 17int(%d) 18 19Done 20