summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63219.phpt
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-10-08 22:59:52 +0800
committerXinchen Hui <laruence@php.net>2012-10-08 22:59:52 +0800
commit67611c67fa5a3b2c199d41ef7df3307308c56faa (patch)
tree8d088abd1cfaf881697f87b59e230ddbf3863b7f /Zend/tests/bug63219.phpt
parent9a99426e802f554237658a5e8e8fe4c91ddf716a (diff)
downloadphp-git-67611c67fa5a3b2c199d41ef7df3307308c56faa.tar.gz
Fixed bug #63219 (Segfault when aliasing trait method when autoloader throws excpetion)
Diffstat (limited to 'Zend/tests/bug63219.phpt')
-rw-r--r--Zend/tests/bug63219.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/Zend/tests/bug63219.phpt b/Zend/tests/bug63219.phpt
new file mode 100644
index 0000000000..999be4a853
--- /dev/null
+++ b/Zend/tests/bug63219.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Bug #63219 (Segfault when aliasing trait method when autoloader throws excpetion)
+--FILE--
+<?php
+trait TFoo {
+ public function fooMethod(){}
+}
+
+class C {
+ use TFoo {
+ Typo::fooMethod as tf;
+ }
+}
+
+echo "okey";
+?>
+--EXPECTF--
+Fatal error: Could not find trait Typo in %sbug63219.php on line %d