Searched refs:const_name (Results 1 - 12 of 12) sorted by relevance

/PHP_5_6/ext/com_dotnet/
H A Dcom_typeinfo.c166 char *const_name; local
187 const_name = php_com_olestring_to_string(bstr_ids, &c.name_len, codepage TSRMLS_CC);
188 c.name = zend_strndup(const_name, c.name_len);
189 efree(const_name);
/PHP_5_6/ext/pdo/
H A Dphp_pdo.h65 #define REGISTER_PDO_CLASS_CONST_LONG(const_name, value) \
66 zend_declare_class_constant_long(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
68 #define REGISTER_PDO_CONST_LONG(const_name, value) { \
71 zend_declare_class_constant_long(*pce, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC); \
74 #define REGISTER_PDO_CLASS_CONST_STRING(const_name, value) \
75 zend_declare_class_constant_stringl(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);
/PHP_5_6/ext/snmp/
H A Dphp_snmp.h130 #define REGISTER_SNMP_CLASS_CONST_LONG(const_name, value) \
131 zend_declare_class_constant_long(php_snmp_ce, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_6/ext/spl/
H A Dspl_functions.h49 #define REGISTER_SPL_CLASS_CONST_LONG(class_name, const_name, value) \
50 zend_declare_class_constant_long(spl_ce_ ## class_name, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_6/ext/xmlreader/
H A Dphp_xmlreader.h48 #define REGISTER_XMLREADER_CLASS_CONST_LONG(const_name, value) \
49 zend_declare_class_constant_long(xmlreader_class_entry, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_6/ext/zip/
H A Dphp_zip.c421 #define REGISTER_ZIP_CLASS_CONST_LONG(const_name, value) \
422 zend_declare_class_constant_long(zip_class_entry, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_6/Zend/
H A Dzend_constants.c228 char *const_name; local
232 const_name = do_alloca(const_name_len, use_heap);
233 memcpy(const_name, "\0__CLASS__", sizeof("\0__CLASS__")-1);
234 zend_str_tolower_copy(const_name + sizeof("\0__CLASS__")-1, EG(scope)->name, EG(scope)->name_length);
235 if (zend_hash_find(EG(zend_constants), const_name, const_name_len, (void**)c) == FAILURE) {
236 zend_hash_add(EG(zend_constants), const_name, const_name_len, (void*)&tmp, sizeof(zend_constant), (void**)c); local
242 free_alloca(const_name, use_heap);
H A Dzend_compile.c5622 static zend_constant* zend_get_ct_const(const zval *const_name, int all_internal_constants_substitution TSRMLS_DC) /* {{{ */ argument
5626 if (Z_STRVAL_P(const_name)[0] == '\\') {
5627 if (zend_hash_find(EG(zend_constants), Z_STRVAL_P(const_name)+1, Z_STRLEN_P(const_name), (void **) &c) == FAILURE) {
5628 char *lookup_name = zend_str_tolower_dup(Z_STRVAL_P(const_name)+1, Z_STRLEN_P(const_name)-1);
5630 if (zend_hash_find(EG(zend_constants), lookup_name, Z_STRLEN_P(const_name), (void **) &c)==SUCCESS) {
5639 } else if (zend_hash_find(EG(zend_constants), Z_STRVAL_P(const_name), Z_STRLEN_P(const_name)+1, (void **) &c) == FAILURE) {
5640 char *lookup_name = zend_str_tolower_dup(Z_STRVAL_P(const_name), Z_STRLEN_
5664 zend_constant_ct_subst(znode *result, zval *const_name, int all_internal_constants_substitution TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/phar/
H A Dphar_object.c5345 #define REGISTER_PHAR_CLASS_CONST_LONG(class_name, const_name, value) \
5346 zend_declare_class_constant_long(class_name, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_6/ext/standard/
H A Dbasic_functions.c618 ZEND_ARG_INFO(0, const_name)
3819 /* {{{ proto mixed constant(string const_name)
3823 char *const_name; local
3826 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &const_name, &const_name_len) == FAILURE) {
3830 if (!zend_get_constant_ex(const_name, const_name_len, return_value, NULL, ZEND_FETCH_CLASS_SILENT TSRMLS_CC)) {
3831 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", const_name);
/PHP_5_6/ext/reflection/
H A Dphp_reflection.c111 #define REGISTER_REFLECTION_CLASS_CONST_LONG(class_name, const_name, value) \
112 zend_declare_class_constant_long(reflection_ ## class_name ## _ptr, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_6/ext/date/
H A Dphp_date.c2031 #define REGISTER_DATE_CLASS_CONST_STRING(const_name, value) \
2032 zend_declare_class_constant_stringl(date_ce_date, const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);
2063 #define REGISTER_TIMEZONE_CLASS_CONST_STRING(const_name, value) \
2064 zend_declare_class_constant_long(date_ce_timezone, const_name, sizeof(const_name)-1, value TSRMLS_CC);
2106 #define REGISTER_PERIOD_CLASS_CONST_STRING(const_name, value) \
2107 zend_declare_class_constant_long(date_ce_period, const_name, sizeof(const_name)-1, value TSRMLS_CC);

Completed in 113 milliseconds