From: Dmitry Stogov Date: Mon, 21 May 2012 08:53:21 +0000 (+0400) Subject: Fixed bug #61998 (Using traits with method aliases appears to result in crash during... X-Git-Tag: php-5.5.0alpha1~183 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7632a32ef94be48c8d4f37bbca7cde458fbf20b9;p=php Fixed bug #61998 (Using traits with method aliases appears to result in crash during execution) --- diff --git a/Zend/tests/traits/bug61998.phpt b/Zend/tests/traits/bug61998.phpt new file mode 100644 index 0000000000..612caa0662 --- /dev/null +++ b/Zend/tests/traits/bug61998.phpt @@ -0,0 +1,68 @@ +--TEST-- +Bug #61998 (Using traits with method aliases appears to result in crash during execution) +--FILE-- +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