php.net |  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
 [2005-06-25 17:19 UTC] webmaster at mif dot it
Description:
------------
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-25 20:11 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [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] tony2001@php.net
Try something newer than 5.0.4 and let us know.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC