Home
last modified time | relevance | path

Searched refs:const_name_len (Results 1 – 2 of 2) sorted by relevance

/PHP-5.4/Zend/
H A Dzend_constants.c240 int const_name_len; in zend_get_special_constant() local
244 const_name_len = sizeof("\0__CLASS__") + EG(scope)->name_length; in zend_get_special_constant()
245 const_name = do_alloca(const_name_len, use_heap); in zend_get_special_constant()
248 if (zend_hash_find(EG(zend_constants), const_name, const_name_len, (void**)c) == FAILURE) { in zend_get_special_constant()
249 …zend_hash_add(EG(zend_constants), const_name, const_name_len, (void*)&tmp, sizeof(zend_constant), … in zend_get_special_constant()
334 int const_name_len = name_len - class_name_len - 2; in zend_get_constant_ex() local
397 int const_name_len = name_len - prefix_len - 1; in zend_get_constant_ex() local
406 lcname = erealloc(lcname, prefix_len + 1 + const_name_len + 1); in zend_get_constant_ex()
408 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex()
414 zend_str_tolower(lcname + prefix_len + 1, const_name_len); in zend_get_constant_ex()
[all …]
/PHP-5.4/ext/standard/
H A Dbasic_functions.c3803 int const_name_len; in PHP_FUNCTION() local
3805 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &const_name, &const_name_len) == FAILURE… in PHP_FUNCTION()
3809 …if (!zend_get_constant_ex(const_name, const_name_len, return_value, NULL, ZEND_FETCH_CLASS_SILENT … in PHP_FUNCTION()

Completed in 18 milliseconds