php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55776 PDORow to session bug
Submitted: 2011-09-24 19:21 UTC Modified: 2011-09-25 12:39 UTC
From: grinyad at mail dot ru Assigned: johannes (profile)
Status: Closed Package: Session related
PHP Version: 5.3.8 OS: Windows XP
Private report: No CVE-ID: None
 [2011-09-24 19:21 UTC] 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()


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-24 19:24 UTC] aharvey@php.net
-Status: Open +Status: Feedback
 [2011-09-24 19:24 UTC] 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-25 08:56 UTC] grinyad at mail dot ru
-Status: Feedback +Status: Open
 [2011-09-25 08:56 UTC] 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-25 12:38 UTC] johannes@php.net
Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=317272
Log: - Fix bug #55776 (PDORow to session bug)
 [2011-09-25 12:39 UTC] johannes@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: johannes
 [2011-09-25 12:39 UTC] johannes@php.net
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.
 [2012-04-18 09:48 UTC] laruence@php.net
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eb8616520529e16401ecbce78fdccdf3304cc9c0
Log: - Fix bug #55776 (PDORow to session bug)
 [2012-07-24 23:39 UTC] rasmus@php.net
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eb8616520529e16401ecbce78fdccdf3304cc9c0
Log: - Fix bug #55776 (PDORow to session bug)
 [2013-11-17 09:36 UTC] laruence@php.net
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=eb8616520529e16401ecbce78fdccdf3304cc9c0
Log: - Fix bug #55776 (PDORow to session bug)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC