Fwd: [PEAR-BUG] Bug #17170 [NEW]: HTTP_Session2 doesn't works with APC

From: Date: Mon, 01 Mar 2010 10:48:57 +0000
Subject: Fwd: [PEAR-BUG] Bug #17170 [NEW]: HTTP_Session2 doesn't works with APC
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-5616@lists.php.net to get a copy of this message
Hey, I just (!) got this email from 3 days ago and the bug is gone. Is it because the reporter didn't confirm his account or something? Till ---------- Forwarded message ---------- From: prgarcial at gmail dot com <pear-qa@lists.php.net> Date: Fri, Feb 26, 2010 at 11:16 AM Subject: [PEAR-BUG] Bug #17170 [NEW]: HTTP_Session2 doesn't works with APC To: till@php.net, bate@php.net From:             #d3d0271c894608de367 Operating system: CentOs 5.4 Package version:  0.7.2 PHP version:      5.2.12 Package:          HTTP_Session2 Bug Type:         Bug Bug description:  HTTP_Session2 doesn't works with APC Description: ------------ Detailed information of the problem can be found in http://pecl.php.net/bugs/bug.php?id=16745 The following patch fix the problem: --- HTTP/Session2/Container.php 2009-11-13 16:18:45.000000000 +0000 +++ HTTP.new/Session2/Container.php     2010-02-26 09:14:11.000000000 +0000 @@ -125,4 +125,14 @@             array($this, 'destroy'),             array($this, 'gc'));     } -} \ No newline at end of file + +   /** +    * Call session_write_close() in destructor for compatibility with PHP >= 5.0.5 +    * +    * @return void +    */ +   public function __destruct() +   { +       session_write_close(); +   } +} -- Edit bug report at http://pear.php.net/bugs/bug.php?id=17170&edit=1 --

« previous php.pear.qa (#5616) next »