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

/PHP_TRUNK/Zend/
H A Dzend_builtin_functions.c1317 char *trait_name, *lc_name; local
1324 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &trait_name, &trait_name_len, &autoload) == FAILURE) {
1333 zend_str_tolower_copy(lc_name, trait_name, trait_name_len);
1348 if (zend_lookup_class(trait_name, trait_name_len, &ce TSRMLS_CC) == SUCCESS) {
H A Dzend_compile.c5305 void zend_do_use_trait(znode *trait_name TSRMLS_DC) /* {{{ */
5312 Z_STRVAL(trait_name->u.constant), CG(active_class_entry)->name);
5316 switch (zend_get_class_fetch_type(Z_STRVAL(trait_name->u.constant), Z_STRLEN(trait_name->u.constant))) {
5320 zend_error_noreturn(E_COMPILE_ERROR, "Cannot use '%s' as trait name as it is reserved", Z_STRVAL(trait_name->u.constant));
5329 zend_resolve_class_name(trait_name TSRMLS_CC);
5332 opline->op2.constant = zend_add_class_name_literal(CG(active_op_array), &trait_name->u.constant TSRMLS_CC);

Completed in 22 milliseconds