bug27535.phpt 353 B

12345678910111213141516171819202122232425262728
  1. --TEST--
  2. Bug #27535 (Objects pointing to each other cause Apache to crash)
  3. --FILE--
  4. <?php
  5. class Class1
  6. {
  7. public $_Class2_obj;
  8. }
  9. class Class2
  10. {
  11. public $storage = '';
  12. function __construct()
  13. {
  14. $this->storage = new Class1();
  15. $this->storage->_Class2_obj = $this;
  16. }
  17. }
  18. $foo = new Class2();
  19. ?>
  20. Alive!
  21. --EXPECT--
  22. Alive!