Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12158 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3494 invoked by uid 1010); 14 Aug 2004 05:36:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3415 invoked from network); 14 Aug 2004 05:36:07 -0000 Received: from unknown (HELO took.shire) (68.122.184.4) by pb1.pair.com with SMTP; 14 Aug 2004 05:36:07 -0000 Received: (qmail 83515 invoked by uid 1001); 14 Aug 2004 05:53:37 -0000 Date: Sat, 14 Aug 2004 05:53:37 +0000 To: internals@lists.php.net Message-ID: <20040814055337.GX69292@bagend.shire> Mail-Followup-To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [PATCH] for bug #26737 From: curt@php.net (Curt Zirzow) As of 5.0.1, when a user returns a property name in the array that is returned by __sleep(), var.c:php_var_serialize_class() doesn't properly find the protected or private members since the names in the table are mangled. This patch, attempts to fix this problem by checking the mangled private and protected properties if the public property isnt found. It also will issue an E_NOTICE if the user returns an item in the array where no property was found. bug: http://bugs.php.net/26737 patch: http://zirzow.dyndns.org/patches/bugs/26737.patch example: http://zirzow.dyndns.org/html/php/php5/sleep.php There also exists a tests/classes/bug26737.phpt which comes back differently but corret, which I'll fix if this patch is accepted. Thanks! Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!