summaryrefslogtreecommitdiff
path: root/Zend/tests/bug63219.phpt
blob: 999be4a8534a7cc10a08cb8404a3a68776b9b728 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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