summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/jump15.phpt29
-rw-r--r--Zend/tests/temporary_cleaning_001.phpt23
-rw-r--r--Zend/tests/temporary_cleaning_002.phpt32
-rw-r--r--Zend/tests/temporary_cleaning_003.phpt19
-rw-r--r--Zend/tests/temporary_cleaning_004.phpt44
-rw-r--r--Zend/tests/temporary_cleaning_005.phpt48
6 files changed, 0 insertions, 195 deletions
diff --git a/Zend/tests/jump15.phpt b/Zend/tests/jump15.phpt
deleted file mode 100644
index 456d27785d..0000000000
--- a/Zend/tests/jump15.phpt
+++ /dev/null
@@ -1,29 +0,0 @@
---TEST--
-jump 15: goto from loop (forward)
---FILE--
-<?php
-$ar = array("1","2","3");
-foreach ($ar as $val) {
- switch ($val) {
- case "1":
- echo "1: ok\n";
- break;
- case "2":
- echo "2: ok\n";
- goto L1;
- case "3":
- echo "bug\n";
- break;
- }
-}
-echo "bug\n";
-L1:
-try {
- echo "3: ok\n";
-} finally {
-}
-?>
---EXPECT--
-1: ok
-2: ok
-3: ok
diff --git a/Zend/tests/temporary_cleaning_001.phpt b/Zend/tests/temporary_cleaning_001.phpt
deleted file mode 100644
index f2ccbb35b8..0000000000
--- a/Zend/tests/temporary_cleaning_001.phpt
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-Temporary leak on exception
---FILE--
-<?php
-
-function ops() {
- throw new Exception();
-}
-
-try {
- $x = 2;
- $y = new stdClass;
- while ($x-- && new stdClass) {
- $r = [$x] + ($y ? ((array) $x) + [2] : ops());
- $y = (array) $y;
- }
-} catch (Exception $e) {
-}
-
-?>
-==DONE==
---EXPECT--
-==DONE==
diff --git a/Zend/tests/temporary_cleaning_002.phpt b/Zend/tests/temporary_cleaning_002.phpt
deleted file mode 100644
index bea54e7f77..0000000000
--- a/Zend/tests/temporary_cleaning_002.phpt
+++ /dev/null
@@ -1,32 +0,0 @@
---TEST--
-Temporary leak on rope (encapsed string)
---FILE--
-<?php
-class Obj {
- function __get($x) {
- throw new Exception();
- }
-}
-
-$x = new Obj;
-$y = 0;
-
-try {
- $r = "$y|$x->x|";
-} catch (Exception $e) {
-}
-
-try {
- $r = "$x->x|$y|";
-} catch (Exception $e) {
-}
-
-try {
- $r = "$y|$y|$x->x";
-} catch (Exception $e) {
-}
-
-?>
-==DONE==
---EXPECT--
-==DONE==
diff --git a/Zend/tests/temporary_cleaning_003.phpt b/Zend/tests/temporary_cleaning_003.phpt
deleted file mode 100644
index acff8c85f0..0000000000
--- a/Zend/tests/temporary_cleaning_003.phpt
+++ /dev/null
@@ -1,19 +0,0 @@
---TEST--
-Fundamental memory leak test on temporaries
---FILE--
-<?php
-
-function ops() {
- throw new Exception();
-}
-
-try{
- $x = 1;
- $r = [$x] + ops();
-} catch (Exception $e) {
-}
-
-?>
-==DONE==
---EXPECT--
-==DONE==
diff --git a/Zend/tests/temporary_cleaning_004.phpt b/Zend/tests/temporary_cleaning_004.phpt
deleted file mode 100644
index b8a02516b0..0000000000
--- a/Zend/tests/temporary_cleaning_004.phpt
+++ /dev/null
@@ -1,44 +0,0 @@
---TEST--
-Temporary leak with switch
---FILE--
-<?php
-
-function ops() {
- throw new Exception();
-}
-
-$a = [new stdClass, new stdClass];
-switch ($a[0]) {
- case false:
- break;
- default:
- try {
- $x = 2;
- $y = new stdClass;
- while ($x-- && new stdClass) {
- $r = [$x] + ($y ? ((array) $x) + [2] : ops());
- $y = (array) $y;
- }
- } catch (Exception $e) {
- }
-}
-
-try {
- switch ($a[0]) {
- case false:
- break;
- default:
- $x = 2;
- $y = new stdClass;
- while ($x-- && new stdClass) {
- $r = [$x] + ($y ? ((array) $x) + [2] : ops());
- $y = (array) $y;
- }
- }
-} catch (Exception $e) {
-}
-
-?>
-==DONE==
---EXPECT--
-==DONE==
diff --git a/Zend/tests/temporary_cleaning_005.phpt b/Zend/tests/temporary_cleaning_005.phpt
deleted file mode 100644
index e8c7febe0b..0000000000
--- a/Zend/tests/temporary_cleaning_005.phpt
+++ /dev/null
@@ -1,48 +0,0 @@
---TEST--
-Temporary leak with foreach
---FILE--
-<?php
-
-function ops() {
- throw new Exception();
-}
-
-$a = [new stdClass, new stdClass];
-foreach ([$a, [new stdClass]] as $b) {
- switch ($b[0]) {
- case false:
- break;
- default:
- try {
- $x = 2;
- $y = new stdClass;
- while ($x-- && new stdClass) {
- $r = [$x] + ($y ? ((array) $x) + [2] : ops());
- $y = (array) $y;
- }
- } catch (Exception $e) {
- }
- }
-}
-
-foreach ([$a, [new stdClass]] as $b) {
- try {
- switch ($b[0]) {
- case false:
- break;
- default:
- $x = 2;
- $y = new stdClass;
- while ($x-- && new stdClass) {
- $r = [$x] + ($y ? ((array) $x) + [2] : ops());
- $y = (array) $y;
- }
- }
- } catch (Exception $e) {
- }
-}
-
-?>
-==DONE==
---EXPECT--
-==DONE==