diff --git a/tests/core/lang/bug27443.phpt b/tests/core/lang/bug27443.phpt new file mode 100644 index 00000000..40979433 --- /dev/null +++ b/tests/core/lang/bug27443.phpt @@ -0,0 +1,8 @@ +--TEST-- +Bug #27443 (defined() returns wrong type) +--FILE-- + +--EXPECT-- +boolean diff --git a/tests/core/lang/bug27535.phpt b/tests/core/lang/bug27535.phpt new file mode 100644 index 00000000..96bd4db2 --- /dev/null +++ b/tests/core/lang/bug27535.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #27535 (Objects pointing to each other cause Apache to crash) +--FILE-- +storage = new Class1(); + + $this->storage->_Class2_obj = $this; + } +} + +function main() { + $foo = new Class2(); +} +?> +--EXPECT-- diff --git a/tests/core/lang/bug29944.phpt b/tests/core/lang/bug29944.phpt new file mode 100644 index 00000000..8d8220ef --- /dev/null +++ b/tests/core/lang/bug29944.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug #29944 (function defined in switch crashes PHP) +--FILE-- + +--EXPECT-- +1 diff --git a/tests/core/lang/bug30578.phpt b/tests/core/lang/bug30578.phpt new file mode 100644 index 00000000..1d859340 --- /dev/null +++ b/tests/core/lang/bug30578.phpt @@ -0,0 +1,31 @@ +--TEST-- +Bug #30578 (Output buffers flushed before calling __destruct functions) +--FILE-- + +--EXPECT-- +This should be displayed first. +Buffered data: This should be displayed last.