Home
last modified time | relevance | path

Searched refs:trait (Results 226 – 231 of 231) sorted by relevance

12345678910

/PHP-7.3/ext/spl/tests/
H A Dclass_uses_variation2.phpt13 trait foo {}
/PHP-7.3/
H A DUPGRADING.INTERNALS165 trait. These instructions are executed once, and caching is useless.
H A DNEWS606 . Fixed bug #78787 (Segfault with trait overriding inherited private shadow
1291 . Fixed bug #77291 (magic methods inherited from a trait may be ignored).
1403 . Fixed bug #63911 (identical trait methods raise errors during composition).
2399 . Fixed bug #74269 (It's possible to override trait property with different
/PHP-7.3/Zend/
H A Dzend_vm_def.h6874 zend_class_entry *trait; variable
6877 trait = zend_fetch_class_by_name(Z_STR_P(RT_CONSTANT(opline, opline->op2)),
6880 if (UNEXPECTED(trait == NULL)) {
6884 if (!(trait->ce_flags & ZEND_ACC_TRAIT)) {
6885 …return(E_ERROR, "%s cannot use %s - it is not a trait", ZSTR_VAL(ce->name), ZSTR_VAL(trait->name));
6888 zend_do_implement_trait(ce, trait);
H A Dzend_vm_execute.h1657 zend_class_entry *trait; local
1660 trait = zend_fetch_class_by_name(Z_STR_P(RT_CONSTANT(opline, opline->op2)),
1663 if (UNEXPECTED(trait == NULL)) {
1667 if (!(trait->ce_flags & ZEND_ACC_TRAIT)) {
1668 …return(E_ERROR, "%s cannot use %s - it is not a trait", ZSTR_VAL(ce->name), ZSTR_VAL(trait->name));
1671 zend_do_implement_trait(ce, trait);
/PHP-7.3/ext/reflection/
H A Dphp_reflection.c4920 zval trait; in ZEND_METHOD() local
4921 zend_reflection_class_factory(ce->traits[i], &trait); in ZEND_METHOD()
4922 zend_hash_update(Z_ARRVAL_P(return_value), ce->traits[i]->name, &trait); in ZEND_METHOD()

Completed in 203 milliseconds

12345678910