Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47062 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48781 invoked from network); 28 Feb 2010 19:03:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2010 19:03:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=hermanradtke@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hermanradtke@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hermanradtke@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:55104] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5C/3D-36353-EEDBA8B4 for ; Sun, 28 Feb 2010 14:03:11 -0500 Received: by bwz8 with SMTP id 8so1299314bwz.23 for ; Sun, 28 Feb 2010 11:03:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=yAkDIiWpKHWXgagH31RdOsAADWuwi5ocZHlWeP1FEWo=; b=lQzLvbTqyfSraYEd4B0Hs6RITgI2NZCW1GhXFoFbdsejZgDEpLquhJQuC/O0XY7UIr i08Hp2R8Kaf7LG67TwQ6gN+kCtfI7A/u2y/e8w2wkqAiKnJ/tpL9sd2Y0F+XIny9bQJD 75o1N3K5vg68VLSMGezqua9Lzjp4hIgy3yBtg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WBmFea6fTvXEsgW8a1GBBvZIFZu6iwl+B3nHo9N313CUEmCQau4uFC6mKCBuh9XNvx 89YZQ1UEazrbfRkK000odmaF+VGmyOCYtwqiF6HPNkLVDmJbs5Cby51mQNmLSHZJ4n7C C/7JIrarHUyxIm9JcqEFkhwblgn0EBQ7wAOUY= MIME-Version: 1.0 Received: by 10.204.138.71 with SMTP id z7mr2301735bkt.77.1267383786783; Sun, 28 Feb 2010 11:03:06 -0800 (PST) In-Reply-To: <4B8A97AF.3060608@seld.be> References: <4B8A97AF.3060608@seld.be> Date: Sun, 28 Feb 2010 11:03:06 -0800 Message-ID: To: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Unserialize is broken From: hermanradtke@gmail.com (Herman Radtke) > Imo unserialize should check, when applying public or protected values, > if either exists on the object, and apply it to the one that exists. > Sure it's gonna cost some performance, but at least changing the > prototype of your class while stuff is running isn't going to kill your > code anymore. This seems like a corner case and one that a conversion script should handle. Considering that serialize and unserialize are called for every single web-request, degrading the performance of unserialize is not something that should be done lightly. -- Herman Radtke hermanradtke@gmail.com | http://hermanradtke.com