Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4075 invoked from network); 13 Feb 2012 09:11:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Feb 2012 09:11:27 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.199.177.89 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.199.177.89 il-mr1.zend.com Received: from [212.199.177.89] ([212.199.177.89:52096] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/52-27081-EB3D83F4 for ; Mon, 13 Feb 2012 04:11:27 -0500 Received: from il-gw1.zend.com (unknown [10.1.1.22]) by il-mr1.zend.com (Postfix) with ESMTP id E1896607B3; Mon, 13 Feb 2012 11:09:48 +0200 (IST) Received: from ws.home (10.1.10.2) by il-ex2.zend.net (10.1.1.22) with Microsoft SMTP Server (TLS) id 14.1.255.0; Mon, 13 Feb 2012 11:11:11 +0200 Message-ID: <4F38D3B8.6010304@zend.com> Date: Mon, 13 Feb 2012 13:11:20 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: Stas Malyshev CC: yoram bar haim , PHP Internals , Alex Haiut , Zeev Suraski , Eran Ifrah , Lior Kaplan References: <201202121409.54891.yoram.b@zend.com> <4F38AE39.8000708@zend.com> <201202131056.04017.yoram.b@zend.com> <4F38D19C.3040003@sugarcrm.com> In-Reply-To: <4F38D19C.3040003@sugarcrm.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.1.10.2] Subject: Re: [PHP-DEV] Re: restore user opcode handler in PHP From: dmitry@zend.com (Dmitry Stogov) I'm not familiar with Mac, but I saw such behavior on Linux very long time ago, when on PHP restart static variables were still keep values from old process. Thanks. Dmitry. On 02/13/2012 01:02 PM, Stas Malyshev wrote: > Hi! > >> Hi Dmitry. >> the patch does work, in sense of actually restoring the handlers state >> when >> you call zend_set_user_opcode_handler() with original handler. >> the patch does not solve the basic problem of no re-initialization of >> static >> arrayes on mac. > > Could you please describe in more details what's going on on mac? It > seems strange that dlopen() would not initialize vars - that'd be pretty > bad behavior. Do you have an easy way to reproduce it?