#28030 [Opn->Bgs]: see description

From: Date: Sat, 17 Apr 2004 02:03:29 +0000
Subject: #28030 [Opn->Bgs]: see description
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58287@lists.php.net to get a copy of this message
ID: 28030 Updated by: sniper@php.net Reported By: myspam_addr at aon dot at -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: win2k PHP Version: 4.3.6 New Comment: This is expected. Don't do that. Previous Comments: ------------------------------------------------------------------------ [2004-04-16 20:11:58] myspam_addr at aon dot at also tested on PHP version 4.3.6. Is is necessary to relaod the page several times. ------------------------------------------------------------------------ [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

« previous php.bugs (#58287) next »