php-src/Zend/tests/traits/bug55524.phpt
Stefan Marr 117e072941 Fixed bug #55524 Traits should not be able to extend a class
# also used the Z_STRVAL where it seemed appropriate
2011-08-29 15:53:46 +00:00

16 lines
239 B
PHP

--TEST--
Bug #55524 Traits should not be able to extend a class
--FILE--
<?php
class Base {}
trait Foo extends Base {
function bar() {}
}
echo 'DONE';
?>
--EXPECTF--
Fatal error: A trait (Foo) cannot extend a class in %s on line %d