diff options
author | Xinchen Hui <laruence@php.net> | 2012-10-08 22:59:52 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2012-10-08 22:59:52 +0800 |
commit | 67611c67fa5a3b2c199d41ef7df3307308c56faa (patch) | |
tree | 8d088abd1cfaf881697f87b59e230ddbf3863b7f /Zend/tests/bug63219.phpt | |
parent | 9a99426e802f554237658a5e8e8fe4c91ddf716a (diff) | |
download | php-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.phpt | 18 |
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 |