]> granicus.if.org Git - php/commitdiff
- Added test for bug #27535 (Objects pointing to each other cause Apache to
authorDerick Rethans <derick@php.net>
Tue, 9 Mar 2004 08:19:19 +0000 (08:19 +0000)
committerDerick Rethans <derick@php.net>
Tue, 9 Mar 2004 08:19:19 +0000 (08:19 +0000)
  crash).

tests/lang/bug27535.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug27535.phpt b/tests/lang/bug27535.phpt
new file mode 100644 (file)
index 0000000..a6ceae7
--- /dev/null
@@ -0,0 +1,28 @@
+--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!