Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22235 invoked from network); 28 Oct 2012 10:25:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Oct 2012 10:25:21 -0000 Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:57363] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/A4-18930-F080D805 for ; Sun, 28 Oct 2012 05:25:20 -0500 Received: by mail-vc0-f170.google.com with SMTP id fo14so4691977vcb.29 for ; Sun, 28 Oct 2012 03:25:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=BF20EiJ0c0HrE+ook+bw14KpdHUKrTLimbNRl5ZfBK8=; b=hMoZGWEPMI8AF2KrJS6bkIP3D9FW8c93tBajq3BhFzPVGmij4IXW4WQ1u8Vm29rNC9 MikW5Lf/LVOHbVdU3qIP49lmj1DG3j3DxFQIAxecp0hN7sLEN0V2t8kIHfL+l2cu5lIp 0nIMpy4X6hCI/QEVUbj+Whbl6gh1No9UkCkg+VET30449nfNA1JqZ7oplqMRGaxvjY5H UuRNzSFbeC69VSxjGd9AFSsJ7dF8N13co7iwmyk24KBk3LLBd4W7DkGxQRzDGpbipTWB F5/pDbfNgpW3i8wIPJOZFkeUCR4JMlmr4Z8yHgPFp8fk5eUOK2PDRTknxHzBr5GDEQBH opeA== Received: by 10.220.230.133 with SMTP id jm5mr26068098vcb.4.1351419916791; Sun, 28 Oct 2012 03:25:16 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.221.12.8 with HTTP; Sun, 28 Oct 2012 03:24:56 -0700 (PDT) In-Reply-To: <1351393559.50804.YahooMailNeo@web132403.mail.ird.yahoo.com> References: <1351393559.50804.YahooMailNeo@web132403.mail.ird.yahoo.com> Date: Sun, 28 Oct 2012 18:24:56 +0800 X-Google-Sender-Auth: vt1BE-hdw1RTawLuHstp03VeFMo Message-ID: To: dabo Cc: "internals@lists.php.net" , Arpad Ray Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Warning when using session_regenerate_id(TRUE) with a SessionHandler From: laruence@php.net (Laruence) Hey: could you please open a bug at bugs.php.net for that? thanks On Sun, Oct 28, 2012 at 11:05 AM, dabo wrote: > Hi folks, > > I believe there's an issue with the SessionHandler implementation and > the way the destroy handler is invoked when using > session_regenerate_id(TRUE) > > Using latest stable Gentoo PHP 5.4.6 but as far as I could tell the C > code source for this part hasn't since been touched up to master. > > The following code generates a warning : > > $handler = new SessionHandler(); > session_set_save_handler($handler, TRUE); // or FALSE, doesn't matter > > session_start(); > session_regenerate_id(TRUE); > > //session_write_close(); > ----------- > PHP Warning: Unknown: Parent session handler is not open in Unknown on line 0 > > The call to session_write_close() just adds a proper backtrace. > > The problem seems to come from using the global "mod_user_is_open" in > the PS_SANITY_CHECK_IS_OPEN macro (in ext/session/mod_user_class.c). > Any reason "session_status" isn't checked instead ? > > Can anyone confirm ? > > Thank you > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -- Laruence Xinchen Hui http://www.laruence.com/