#28030 [Opn]: see description

From: Date: Sat, 17 Apr 2004 00:11:58 +0000
Subject: #28030 [Opn]: see description
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58283@lists.php.net to get a copy of this message
 ID:               28030
 User updated by:  myspam_addr at aon dot at
 Reported By:      myspam_addr at aon dot at
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: win2k
-PHP Version:      4.3.4
+PHP Version:      4.3.6
 New Comment:

also tested on PHP version 4.3.6.
Is is necessary to relaod the page several times.


Previous Comments:
------------------------------------------------------------------------

[2004-04-16 19:40:54] myspam_addr at aon dot at

Description:
------------
if you evaluate the code in the
textarea (Reproduce code), it works.
But I've reloaded the page (my be you have to
reload more than two times) and Apache/1.3.24
crash.

If I run the code without the marked
'&' (reference' it run always correct.

Reproduce code:
---------------
<?php

class PTestClass
{
   var $str = "hello, world";
};

   session_start();
   $var = new PTestClass;
   $_SESSION['modules']['test'] = $var;

   if( !isset($_SESSION['m']) ) {
      $_SESSION['m'] = &$_SESSION['modules']['test'];
      //               ^
      
   }

   var_dump($_SESSION['m']);
?>

Expected result:
----------------
see the var_dump outputs.

Actual result:
--------------
apache crashs


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28030&edit=1


Thread (3 messages)

« previous php.bugs (#58283) next »