summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63219.phpt
diff options
context:
space:
mode:
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