Bug #55776 [Opn->Csd]: PDORow to session bug
| From: | johannes@php.net | Date: | Sun, 25 Sep 2011 12:39:55 +0000 |
| Subject: | Bug #55776 [Opn->Csd]: PDORow to session bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163856@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55776&edit=1
ID: 55776
Updated by: johannes@php.net
Reported by: grinyad at mail dot ru
Summary: PDORow to session bug
-Status: Open
+Status: Closed
Type: Bug
Package: Session related
Operating System: Windows XP
PHP Version: 5.3.8
-Assigned To:
+Assigned To: johannes
Block user comment: N
Private report: N
New Comment:
PDORow objects may not be serialized and therefore not be put in a session. In svn it was fixed to
throw a warning and not crash anymore this will be in future releases.
Previous Comments:
------------------------------------------------------------------------
[2011-09-25 12:38:46] johannes@php.net
Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&revision=317272
Log: - Fix bug #55776 (PDORow to session bug)
------------------------------------------------------------------------
[2011-09-25 08:56:28] grinyad at mail dot ru
Is a Apache crash. It gives a CGI/FastCGI Send/Don't Send window.
http://img171.imageshack.us/img171/3953/57126366.jpg
After few minutes is crashing apache server:
http://img840.imageshack.us/img840/2981/21231006.jpg
------------------------------------------------------------------------
[2011-09-24 19:24:29] aharvey@php.net
What do you mean by "crashing"? Is the actual PHP process crashing, or
are you just getting an error message because PDO statements aren't
serialisable (which is expected)?
------------------------------------------------------------------------
[2011-09-24 19:21:08] grinyad at mail dot ru
Description:
------------
<?php
// make a Pdo_Mysql statement before
$result = $stmt->fetch(PDO::FETCH_LAZY);
session_start();
$_SESSION['PDORow'] = $result;
?>
Is crashing on next request after saving PDORow to session on session_start()
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55776&edit=1