Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74140 invoked from network); 29 Oct 2012 01:20:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2012 01:20:26 -0000 Authentication-Results: pb1.pair.com header.from=avatar2004-php@yahoo.fr; sender-id=unknown; domainkeys=good Authentication-Results: pb1.pair.com smtp.mail=avatar2004-php@yahoo.fr; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain yahoo.fr from 77.238.189.196 cause and error) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: avatar2004-php@yahoo.fr X-Host-Fingerprint: 77.238.189.196 nm12-vm0.bullet.mail.ird.yahoo.com Received: from [77.238.189.196] ([77.238.189.196:33808] helo=nm12-vm0.bullet.mail.ird.yahoo.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/A0-65462-5D9DD805 for ; Sun, 28 Oct 2012 20:20:22 -0500 Received: from [77.238.189.234] by nm12.bullet.mail.ird.yahoo.com with NNFMP; 29 Oct 2012 01:20:18 -0000 Received: from [212.82.108.133] by tm15.bullet.mail.ird.yahoo.com with NNFMP; 29 Oct 2012 01:20:18 -0000 Received: from [127.0.0.1] by omp1038.mail.ird.yahoo.com with NNFMP; 29 Oct 2012 01:20:18 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 653953.84887.bm@omp1038.mail.ird.yahoo.com Received: (qmail 55085 invoked by uid 60001); 29 Oct 2012 01:20:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1351473618; bh=GqsijjHuPUTcaBhWC2D6J9MbDaIsgEqMdNGqOwrVTko=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=YYF6VvW0obGYM1yNKNwsW6pfmqEoxth3ZGvHyXLGZGQj03mXhpYcNbRM+hZU0tqX/IWGoXig/WoQPAHB82+qXI5o6gdacZdkklqGZSVks0KouNr1BXvPUTBfmeBfW5iaM+7qohKxI+zUXSOlxTA2m6za7Ln2/4YzdpYvwOV9aSQ= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=UeHtfwB3hVFy4iwCFp2Vn2K6Vz0enjSFLDvxGlFFCC1YeYjMWZwUtXxgwUGibNXjiDqsj4ku/voWGSVSKAYox0pSkFS/If2tYp9vc3+rKiuKfZeL8dWE3YiOA8N+Xljac3CuuC/1wGjNNc6H2NnvkKE9SFXzDo5QKEFrW7fVnJM=; X-YMail-OSG: EgN6LpAVM1lh6pRuR12AvkSw68J0b_8lhp06oXj5VOkiIoi DDd.wkrIVFsE5QR8v4t_G4q3xKCoJfyLG_Na1CNQ.7fsm5c3Zr5pdyKOnCJ0 WHlY4GzlH1Z88dtIujo7zBfEbYQAOdsux36vJLwIfNgucuTT.zTUSSUq.5yH wgOC.OZE8GYFjK_4mNmOywHGWRGWMmn6I_iOjKrC2Gw2PJj2PHgIZf.Y8qAa MjTaCNIugkwlYA8_jBX4ayKhfYKWgj0I3CZUfycVTZrxWyadkfQigs4iwU2h VEPZ38DymLx6guQmOqZvTFc4IfeNAg_LwtKmjZXqILEYwhDkxID7G..CWFZC E.Gpg7C5yZJWUAyDg03Cl39QW_A_OKBxitYjE29g8UWFzgQ0xauxg3l8oZvZ TLwa4ZFFQchkwavyxmMZUrTlRi4fATGknaCRnIst7wMhHhi8nVkq2gNkH49w Q2Yo_3iXaIpK_tlbq9pLOQZjd0FztCcQfIIyW6Mu0c.yWYqy7N0nkunUXirM xPvhnEf134CVFSSHaurPr4L52U.4Eq86dHWbfPexMn3faKuihDgxIk1Mb Received: from [81.57.184.199] by web132403.mail.ird.yahoo.com via HTTP; Mon, 29 Oct 2012 01:20:18 GMT X-Rocket-MIMEInfo: 001.001,RG9uZSA6CgoKaHR0cHM6Ly9idWdzLnBocC5uZXQvYnVnLnBocD9pZD02MzM3OQoKCgotLS0tLSBNYWlsIG9yaWdpbmFsIC0tLS0tCkRlwqA6IExhcnVlbmNlIDxsYXJ1ZW5jZUBwaHAubmV0PgrDgMKgOiBkYWJvIDxhdmF0YXIyMDA0LXBocEB5YWhvby5mcj4KQ2PCoDogImludGVybmFsc0BsaXN0cy5waHAubmV0IiA8aW50ZXJuYWxzQGxpc3RzLnBocC5uZXQ.OyBBcnBhZCBSYXkgPGFycGFkQHBocC5uZXQ.CkVudm95w6kgbGUgOiBEaW1hbmNoZSAyOCBvY3RvYnJlIDIwMTIgMTFoMjQKT2JqZXTCoDogUmU6IFsBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.450 References: <1351393559.50804.YahooMailNeo@web132403.mail.ird.yahoo.com> Message-ID: <1351473618.54590.YahooMailNeo@web132403.mail.ird.yahoo.com> Date: Mon, 29 Oct 2012 01:20:18 +0000 (GMT) Reply-To: dabo To: "internals@lists.php.net" Cc: Arpad Ray , Laruence In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Warning when using session_regenerate_id(TRUE) with a SessionHandler From: avatar2004-php@yahoo.fr (dabo) Done :=0A=0A=0Ahttps://bugs.php.net/bug.php?id=3D63379=0A=0A=0A=0A----- Mai= l original -----=0ADe=A0: Laruence =0A=C0=A0: dabo =0ACc=A0: "internals@lists.php.net" ; Arpad Ray =0AEnvoy=E9 le : Dimanche 28 octobre 2012 1= 1h24=0AObjet=A0: Re: [PHP-DEV] Warning when using session_regenerate_id(TRU= E) with a SessionHandler=0A=0AHey:=0A=A0 could you please open a bug at bug= s.php.net for that?=0A=0Athanks=0A=0AOn Sun, Oct 28, 2012 at 11:05 AM, dabo= wrote:=0A> Hi folks,=0A>=0A> I believe there's a= n issue with the SessionHandler implementation and=0A> the way the destroy = handler is invoked when using=0A> session_regenerate_id(TRUE)=0A>=0A> Using= latest stable Gentoo PHP 5.4.6 but as far as I could tell the C=0A> code s= ource for this part hasn't since been touched up to master.=0A>=0A> The fol= lowing code generates a warning :=0A>=0A> $handler =3D new SessionHandler()= ;=0A> session_set_save_handler($handler, TRUE); // or FALSE, doesn't matter= =0A>=0A> session_start();=0A> session_regenerate_id(TRUE);=0A>=0A> //sessio= n_write_close();=0A> -----------=0A> PHP Warning:=A0 Unknown: Parent sessio= n handler is not open in Unknown on line 0=0A>=0A> The call to session_writ= e_close() just adds a proper backtrace.=0A>=0A> The problem seems to come f= rom using the global "mod_user_is_open" in=0A> the PS_SANITY_CHECK_IS_OPEN = macro (in ext/session/mod_user_class.c).=0A> Any reason "session_status" is= n't checked instead ?=0A>=0A> Can anyone confirm ?=0A>=0A> Thank you=0A>=0A= >=0A> --=0A> PHP Internals - PHP Runtime Development Mailing List=0A> To un= subscribe, visit: http://www.php.net/unsub.php=0A>=0A=0A=0A=0A-- =0ALaruenc= e=A0 Xinchen Hui=0Ahttp://www.laruence.com/=0A