|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33473 Apache crash on assigning new object to $_SESSION
Submitted: 2005-06-25 17:19 UTC Modified: 2005-11-28 12:19 UTC
From: webmaster at mif dot it Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.0.4 OS: Win XP Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
11 + 45 = ?
Subscribe to this entry?

 [2005-06-25 17:19 UTC] webmaster at mif dot it
To instantiate a new object and assigning it to a not initialized session variable, will result in Apache/php dll to crash.

Reproduce code:
# This will crash Apache/php5 dll
$_SESSION['myvar'] = new MyObj();

# This will be executed without problems
$_SESSION['myvar'] = null;
$_SESSION['myvar'] = new MyObj();

Expected result:
That Apache / PHP doesn't crash.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-25 20:11 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-07-03 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2005-11-28 11:33 UTC] markus at cultcom dot de
This bug is reproducable with FC4 PHP Packages here (5.0.4), is this acutally fixed in 5.0.5?
 [2005-11-28 12:19 UTC]
Try something newer than 5.0.4 and let us know.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 23:01:29 2024 UTC