diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-06-14 16:02:21 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-06-14 16:02:21 +0200 |
| commit | f0f8d7084aec4be5c07f02f2e29c2820f85c8315 (patch) | |
| tree | 02e9b39d5b0088a0e27126010c96a748d824d055 /Zend/tests | |
| parent | 90ceaa9e92fadfef4c21ec0f76063c4387beb561 (diff) | |
| download | php-f0f8d7084aec4be5c07f02f2e29c2820f85c8315.tar.gz | |
Imported Upstream version 5.4.4upstream/5.4.4
Diffstat (limited to 'Zend/tests')
| -rw-r--r-- | Zend/tests/traits/bug61998.phpt | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/Zend/tests/traits/bug61998.phpt b/Zend/tests/traits/bug61998.phpt deleted file mode 100644 index 612caa066..000000000 --- a/Zend/tests/traits/bug61998.phpt +++ /dev/null @@ -1,68 +0,0 @@ ---TEST-- -Bug #61998 (Using traits with method aliases appears to result in crash during execution) ---FILE-- -<?php -class Foo { - use T1 { - func as newFunc; - } - - public function func() { - echo "From Foo\n"; - } -} - -trait T1 { - public function func() { - echo "From T1\n"; - } -} - -class Bar { - public function func() { - echo "From Bar\n"; - } - public function func2() { - echo "From Bar\n"; - } - public function func3() { - echo "From Bar\n"; - } - use T1 { - func as newFunc; - func as func2; - } - use T2 { - func2 as newFunc2; - func2 as newFunc3; - func2 as func3; - } -} - -trait T2 { - public function func2() { - echo "From T2\n"; - } -} - -$f = new Foo(); - -$f->newFunc(); //from T1 -$f->func(); //from Foo - -$b = new Bar(); -$b->newFunc(); //from T1 -$b->func(); //from Bar -$b->func2(); //from Bar -$b->newFunc2(); //from T2 -$b->newFunc3(); //from T2 -$b->func3(); //from Bar ---EXPECTF-- -From T1 -From Foo -From T1 -From Bar -From Bar -From T2 -From T2 -From Bar |
