summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2013-08-29 14:01:54 +0800
committerXinchen Hui <laruence@php.net>2013-08-29 14:01:54 +0800
commitf0cb67402f2bcd3dc310cf938dfce799ccec7c7b (patch)
tree24bafceb13dfa10637ab89198c11a4c9840176f6 /Zend/tests
parentbd677b43a78ebc0779ed64781172225d15b35671 (diff)
parent72027cd0848f1a5c580c601573448cdea9b095ca (diff)
downloadphp-git-f0cb67402f2bcd3dc310cf938dfce799ccec7c7b.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug65579.phpt29
1 files changed, 29 insertions, 0 deletions
diff --git a/Zend/tests/bug65579.phpt b/Zend/tests/bug65579.phpt
new file mode 100644
index 0000000000..25d74ed4f5
--- /dev/null
+++ b/Zend/tests/bug65579.phpt
@@ -0,0 +1,29 @@
+--TEST--
+Bug #65579 (Using traits with get_class_methods causes segfault)
+--FILE--
+<?php
+trait ParentTrait {
+ public function testMethod() { }
+}
+
+trait ChildTrait {
+ use ParentTrait {
+ testMethod as testMethodFromParentTrait;
+ }
+ public function testMethod() { }
+}
+
+class TestClass {
+ use ChildTrait;
+}
+
+$obj = new TestClass();
+var_dump(get_class_methods($obj));
+?>
+--EXPECT--
+array(2) {
+ [0]=>
+ string(10) "testMethod"
+ [1]=>
+ string(25) "testmethodfromparenttrait"
+}