|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-09 03:06 UTC] derick@php.net
[2004-03-11 09:57 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 16:00:01 2025 UTC |
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