derick          Tue Mar  9 03:19:23 2004 EDT

  Added files:                 
    /php-src/tests/lang bug27535.phpt 
  Log:
  - Added test for bug #27535 (Objects pointing to each other cause Apache to
    crash).
  
  

http://cvs.php.net/co.php/php-src/tests/lang/bug27535.phpt?r=1.1&p=1
Index: php-src/tests/lang/bug27535.phpt
+++ php-src/tests/lang/bug27535.phpt
--TEST--
Bug #27535 (Objects pointing to each other cause Apache to crash)
--FILE--
<?php
                                                                                       
                                         
class Class1
{
        public $_Class2_obj;
}

class Class2
{
        public $storage = '';

        function Class2()
        {
                $this->storage = new Class1();

                $this->storage->_Class2_obj = $this;
        }
}

$foo = new Class2();

?>
Alive!
--EXPECT--
Alive!

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to