php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2034 Bug in ext/standard/var.c or ext/session/session.c
Submitted: 1999-08-11 14:41 UTC Modified: 1999-09-19 10:03 UTC
From: b at 123 dot org Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Latest CVS (11/08/1999) OS: debian linux 2.2
Private report: No CVE-ID: None
 [1999-08-11 14:41 UTC] b at 123 dot org
Try to load and then relaod this page:

----
<?php
session_start(); session_register("myobj");

class myclass {
  var $slot = 1;
}

if ( !isset($myobj)) {
  $myobj = new myclass();
  $myobj->slot=4;
}

?>
<html>
 <head>
 </head>
 <body>
  <%=++$myobj->slot%>
 </body>
</html>
----

it should produce "5" on the first load (and does this) and
"6" on the second load, which it doesnt.

Instead i get on my apache 1.3.6

----
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, boris@erdmann.com and inform them of the time the error occurred, and
anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
----

Boris

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-17 13:56 UTC] sas at cvs dot php dot net
known fact, soon to be fixed
 [1999-09-19 10:03 UTC] andi at cvs dot php dot net
Fixed in the latest CVS. Beta 3 is due out within a few days.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 06:01:28 2024 UTC