summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2004-03-09 08:19:19 +0000
committerDerick Rethans <derick@php.net>2004-03-09 08:19:19 +0000
commit360b98566c34e70a0b97c4457c013cb6def92e6e (patch)
tree2ead5462bbdde5793692695a8a8042f566620641
parent35f695954a85d41d0bf192ef0df1412839142e05 (diff)
downloadphp-git-360b98566c34e70a0b97c4457c013cb6def92e6e.tar.gz
- Added test for bug #27535 (Objects pointing to each other cause Apache to
crash).
-rw-r--r--tests/lang/bug27535.phpt28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/lang/bug27535.phpt b/tests/lang/bug27535.phpt
new file mode 100644
index 0000000000..a6ceae7463
--- /dev/null
+++ b/tests/lang/bug27535.phpt
@@ -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!