Searched refs:trait_name (Results 1 - 3 of 3) sorted by relevance

/PHP_5_4/Zend/
H A Dzend_language_scanner.l1609 const char *trait_name = NULL;
1614 trait_name = CG(active_class_entry)->name;
1617 if (!trait_name) {
1618 trait_name = "";
1621 zendlval->value.str.len = strlen(trait_name);
1622 zendlval->value.str.val = estrndup(trait_name, zendlval->value.str.len);
H A Dzend_builtin_functions.c1307 char *trait_name, *lc_name; local
1314 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &trait_name, &trait_name_len, &autoload) == FAILURE) {
1323 zend_str_tolower_copy(lc_name, trait_name, trait_name_len);
1338 if (zend_lookup_class(trait_name, trait_name_len, &ce TSRMLS_CC) == SUCCESS) {
H A Dzend_compile.c4994 void zend_do_use_trait(znode *trait_name TSRMLS_DC) /* {{{ */
5001 Z_STRVAL(trait_name->u.constant), CG(active_class_entry)->name);
5005 switch (zend_get_class_fetch_type(Z_STRVAL(trait_name->u.constant), Z_STRLEN(trait_name->u.constant))) {
5009 zend_error(E_COMPILE_ERROR, "Cannot use '%s' as trait name as it is reserved", Z_STRVAL(trait_name->u.constant));
5018 zend_resolve_class_name(trait_name, opline->extended_value, 0 TSRMLS_CC);
5021 opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), &trait_name->u.constant TSRMLS_CC);

Completed in 20 milliseconds