]> granicus.if.org Git - php/commitdiff
Remove test because the problem won't be fixed for 4.x releases.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 27 Oct 2003 18:14:04 +0000 (18:14 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 27 Oct 2003 18:14:04 +0000 (18:14 +0000)
tests/lang/bug25831.phpt [deleted file]

diff --git a/tests/lang/bug25831.phpt b/tests/lang/bug25831.phpt
deleted file mode 100644 (file)
index f73930a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-Bug #25831 (pass-by-reference malfunction on overloaded method call)
---FILE--
-<?php 
-class no_problem  {
-       function pass_by_reference(&$ref)       {
-               $ref = "Pass by reference works";
-       }
-}
-
-class problem  { 
-       function pass_by_reference(&$ref)       {
-               $ref = "Pass by reference works";
-       }
-       // simple dummy call implementation..
-    function __call($method,$params,&$return) {
-               if ($method == get_class($this)) {
-                       return true;    
-        }
-               return false; // not found!
-       }
-}
-
-overload('problem');
-
-$good = &new no_problem;
-$bad = &new problem;
-
-$message = "Pass by reference does not work!";
-$good->pass_by_reference($message);
-print "$message\n";
-
-$message = "Pass by reference does not work!";
-$bad->pass_by_reference($message);
-print "$message\n";
-
-?>
---EXPECT--
-Pass by reference works
-Pass by reference works