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

/PHP_TRUNK/Zend/
H A Dzend_compile.c5710 void zend_do_use_trait(znode *trait_name TSRMLS_DC) /* {{{ */
5717 Z_STRVAL(trait_name->u.constant), CG(active_class_entry)->name->val);
5721 switch (zend_get_class_fetch_type(Z_STRVAL(trait_name->u.constant), Z_STRLEN(trait_name->u.constant))) {
5725 zend_error_noreturn(E_COMPILE_ERROR, "Cannot use '%s' as trait name as it is reserved", Z_STRVAL(trait_name->u.constant));
5734 zend_resolve_class_name(trait_name TSRMLS_CC);
5737 opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), &trait_name->u.constant TSRMLS_CC);
H A Dzend_builtin_functions.c1361 zend_string *trait_name, *lc_name; local
1366 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S|b", &trait_name, &autoload) == FAILURE) {
1371 Z_PARAM_STR(trait_name)
1378 if (trait_name->val[0] == '\\') {
1380 lc_name = STR_ALLOC(trait_name->len - 1, 0);
1381 zend_str_tolower_copy(lc_name->val, trait_name->val + 1, trait_name->len - 1);
1383 lc_name = STR_ALLOC(trait_name->len, 0);
1384 zend_str_tolower_copy(lc_name->val, trait_name->val, trait_name
[all...]

Completed in 19 milliseconds