Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67548 invoked from network); 26 Jul 2013 21:07:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jul 2013 21:07:43 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.22 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.22 smtp2.ist.utl.pt Linux 2.6 Received: from [193.136.128.22] ([193.136.128.22:35219] helo=smtp2.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/4D-25917-E15E2F15 for ; Fri, 26 Jul 2013 17:07:43 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp2.ist.utl.pt (Postfix) with ESMTP id BDA8B7000444; Fri, 26 Jul 2013 22:07:38 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp2.ist.utl.pt ([127.0.0.1]) by localhost (smtp2.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id ZTerZD7xuzxF; Fri, 26 Jul 2013 22:07:38 +0100 (WEST) Received: from mail2.ist.utl.pt (mail.ist.utl.pt [IPv6:2001:690:2100:1::8]) by smtp2.ist.utl.pt (Postfix) with ESMTP id 7FFA77000441; Fri, 26 Jul 2013 22:07:38 +0100 (WEST) Received: from [IPv6:2001:981:8103:d8:96de:80ff:fe7e:525f] (unknown [IPv6:2001:981:8103:d8:96de:80ff:fe7e:525f]) (Authenticated sender: ist155741) by mail2.ist.utl.pt (Postfix) with ESMTPSA id 24152200D077; Fri, 26 Jul 2013 22:07:38 +0100 (WEST) Message-ID: <51F2E4E7.9010205@nebm.ist.utl.pt> Date: Fri, 26 Jul 2013 23:06:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Thunderbird/22.0 MIME-Version: 1.0 To: Jakub Zelenka CC: PHP internals list , "nikic@php.net" References: <51F18BEF.8000305@nebm.ist.utl.pt> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New handler for retrieving properties when object is serialized From: glopes@nebm.ist.utl.pt (Gustavo Lopes) On 26-07-2013 11:53, Jakub Zelenka wrote: >> You can check for BG(serialize_lock) instead of GC_G(gc_active) >> > > What if there was an extension that call php_var_serialize without locking? > I know there probably isn't any but still I don't think that this is a nice > way how to provide data for serialization. > I think not using PHP_VAR_SERIALIZE_INIT() would always be an error in the extension anyway. However, you are right this method is not "nice" by any means. -- Gustavo Lopes