]> granicus.if.org Git - php/commitdiff
- Removing pointless tests. (both of these will be fixed in PHP 5)
authorfoobar <sniper@php.net>
Mon, 24 Feb 2003 16:04:05 +0000 (16:04 +0000)
committerfoobar <sniper@php.net>
Mon, 24 Feb 2003 16:04:05 +0000 (16:04 +0000)
# We don't need to get any test reports about these anymore
# for PHP_4_3 branch since these won't be fixed in 4.3.x.

tests/lang/bug21600.phpt [deleted file]
tests/lang/bug22231.phpt [deleted file]

diff --git a/tests/lang/bug21600.phpt b/tests/lang/bug21600.phpt
deleted file mode 100644 (file)
index bb8323a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
---TEST--
-Bug #21600 (assign by reference function call changes variable contents)
---FILE--
-<?php
-$tmp = array();
-$tmp['foo'] = "test";
-$tmp['foo'] = &bar($tmp['foo']);
-var_dump($tmp);
-
-unset($tmp);
-
-$tmp = array();
-$tmp['foo'] = "test";
-$tmp['foo'] = &fubar($tmp['foo']);
-var_dump($tmp);
-
-function bar($text){
-  return $text;
-}
-
-function fubar($text){
-  $text = &$text;
-  return $text;
-}
-?>
---EXPECT--
-array(1) {
-  ["foo"]=>
-  string(4) "test"
-}
-array(1) {
-  ["foo"]=>
-  string(4) "test"
-}
diff --git a/tests/lang/bug22231.phpt b/tests/lang/bug22231.phpt
deleted file mode 100644 (file)
index 0d4d19d..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Bug #22231 (segfault when returning a global variable by reference)
---FILE--
-<?php
-class foo {
-    var $fubar = 'fubar';
-}
-
-function &foo(){
-    $GLOBALS['foo'] = &new foo();
-    return $GLOBALS['foo'];
-}
-$bar = &foo();
-var_dump($bar);
-var_dump($bar->fubar);
-unset($bar);
-$bar = &foo();
-var_dump($bar->fubar);
-
-$foo = &foo();
-var_dump($foo);
-var_dump($foo->fubar);
-unset($foo);
-$foo = &foo();
-var_dump($foo->fubar);
-?>
---EXPECT--
-object(foo)(1) {
-  ["fubar"]=>
-  string(5) "fubar"
-}
-string(5) "fubar"
-string(5) "fubar"
-object(foo)(1) {
-  ["fubar"]=>
-  string(5) "fubar"
-}
-string(5) "fubar"
-string(5) "fubar"