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