From: random at sinfusion dot com
Operating system: Windows 2000
PHP version: 5.0.0b4 (beta4)
PHP Bug Type: Reproducible crash
Bug description: Objects pointing to each other cause Apache to crash
Description:
------------
Originally this was happening at the end of PEAR::Auth's constructor when
it points it's storage object's '_auth_obj' variable to itself ($this).
I've created a simpler example that still crashes either Apache 1.3.29 or
2.0.48, but in the simpler case it doesn't crash Apache until the second
time you run the script.
Reproduce code:
---------------
<?php
class Class1
{
var $_Class2_obj;
}
class Class2
{
var $storage = '';
function Class2()
{
$this->storage = new Class1();
$this->storage->_Class2_obj = $this;
}
}
$foo = new Class2();
?>
Expected result:
----------------
No output, but no crash either.
Actual result:
--------------
Apache crashes
--
Edit bug report at http://bugs.php.net/?id=27535&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27535&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27535&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27535&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27535&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27535&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27535&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27535&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27535&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27535&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27535&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27535&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27535&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27535&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27535&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27535&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27535&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27535&r=float