\n"); exit(1); } fwrite(STDERR, "Payload length: " . strlen($payload) . "\n"); fwrite(STDERR, "Unserializing...\n"); $obj = unserialize($payload); fwrite(STDERR, "Object type: " . get_class($obj) . "\n"); fwrite(STDERR, "Letting __destruct fire (end of script)...\n"); // __destruct fires here when $obj goes out of scope