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

[email protected] (till)
Newsgroups php.pear.qa
Message-ID <[email protected]>
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 <[email protected]>
Date: Fri, Feb 26, 2010 at 11:16 AM
Subject: [PEAR-BUG] Bug #17170 [NEW]: HTTP_Session2 doesn't works with APC
To: [email protected], [email protected]


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
--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.