Currently, to check if something is serialized, I do this:
function is_serialized($data)
{
return (@unserialize($data) !== false);
}
But it issues an E_NOTICE. The @ is great to suppress output, but it's still clogging up every other line of my error log (which is purposefully enabled for notices). Are there any cleaner alternatives??