From:             myspam_addr at aon dot at
Operating system: win2k
PHP version:      4.3.4
PHP Bug Type:     Reproducible crash
Bug description:  see description

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 bug report at http://bugs.php.net/?id=28030&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28030&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28030&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28030&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28030&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28030&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28030&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28030&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28030&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28030&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28030&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28030&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28030&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28030&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28030&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28030&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28030&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28030&r=float

Reply via email to