|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-16 20:11 UTC] myspam_addr at aon dot at
[2004-04-16 22:03 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 20:00:01 2025 UTC |
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