diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-27 18:14:04 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-10-27 18:14:04 +0000 |
| commit | 9006d8e97bab82aa1ebca2480e37be9eab1cd948 (patch) | |
| tree | a1371c3bf7a7415b31c62fc09f237bd4ba2ad085 | |
| parent | e189a15dbfdf0575acadd13b3fc31ebd40d75129 (diff) | |
| download | php-git-9006d8e97bab82aa1ebca2480e37be9eab1cd948.tar.gz | |
Remove test because the problem won't be fixed for 4.x releases.
| -rw-r--r-- | tests/lang/bug25831.phpt | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/lang/bug25831.phpt b/tests/lang/bug25831.phpt deleted file mode 100644 index f73930ab9c..0000000000 --- a/tests/lang/bug25831.phpt +++ /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 |
