/PHP-5.5/ext/pdo/ |
H A D | php_pdo.h | 65 #define REGISTER_PDO_CLASS_CONST_LONG(const_name, value) \ argument 66 …zend_declare_class_constant_long(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (long)val… 68 #define REGISTER_PDO_CONST_LONG(const_name, value) { \ argument 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) \ argument 75 …zend_declare_class_constant_stringl(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, value,…
|
/PHP-5.5/ext/xmlreader/ |
H A D | php_xmlreader.h | 48 #define REGISTER_XMLREADER_CLASS_CONST_LONG(const_name, value) \ argument 49 …zend_declare_class_constant_long(xmlreader_class_entry, const_name, sizeof(const_name)-1, (long)va…
|
/PHP-5.5/ext/snmp/ |
H A D | php_snmp.h | 130 #define REGISTER_SNMP_CLASS_CONST_LONG(const_name, value) \ argument 131 …zend_declare_class_constant_long(php_snmp_ce, const_name, sizeof(const_name)-1, (long)value TSRMLS…
|
/PHP-5.5/ext/spl/ |
H A D | spl_functions.h | 49 #define REGISTER_SPL_CLASS_CONST_LONG(class_name, const_name, value) \ argument 50 …zend_declare_class_constant_long(spl_ce_ ## class_name, const_name, sizeof(const_name)-1, (long)va…
|
/PHP-5.5/Zend/ |
H A D | zend_constants.c | 241 char *const_name; in zend_get_special_constant() local 245 const_name = do_alloca(const_name_len, use_heap); in zend_get_special_constant() 246 memcpy(const_name, "\0__CLASS__", sizeof("\0__CLASS__")-1); in zend_get_special_constant() 247 …zend_str_tolower_copy(const_name + sizeof("\0__CLASS__")-1, EG(scope)->name, EG(scope)->name_lengt… 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() 255 free_alloca(const_name, use_heap); in zend_get_special_constant()
|
H A D | zend_compile.c | 5529 static zend_constant* zend_get_ct_const(const zval *const_name, int all_internal_constants_substitu… in zend_get_ct_const() argument 5533 if (Z_STRVAL_P(const_name)[0] == '\\') { in zend_get_ct_const() local 5534 …if (zend_hash_find(EG(zend_constants), Z_STRVAL_P(const_name)+1, Z_STRLEN_P(const_name), (void **)… in zend_get_ct_const() 5535 char *lookup_name = zend_str_tolower_dup(Z_STRVAL_P(const_name)+1, Z_STRLEN_P(const_name)-1); in zend_get_ct_const() 5537 …if (zend_hash_find(EG(zend_constants), lookup_name, Z_STRLEN_P(const_name), (void **) &c)==SUCCESS… in zend_get_ct_const() 5546 …} else if (zend_hash_find(EG(zend_constants), Z_STRVAL_P(const_name), Z_STRLEN_P(const_name)+1, (v… in zend_get_ct_const() 5547 char *lookup_name = zend_str_tolower_dup(Z_STRVAL_P(const_name), Z_STRLEN_P(const_name)); in zend_get_ct_const() 5549 …if (zend_hash_find(EG(zend_constants), lookup_name, Z_STRLEN_P(const_name)+1, (void **) &c)==SUCCE… in zend_get_ct_const() 5572 static int zend_constant_ct_subst(znode *result, zval *const_name, int all_internal_constants_subst… in zend_constant_ct_subst() argument 5574 zend_constant *c = zend_get_ct_const(const_name, all_internal_constants_substitution TSRMLS_CC); in zend_constant_ct_subst() [all …]
|
/PHP-5.5/ext/com_dotnet/ |
H A D | com_typeinfo.c | 166 char *const_name; in php_com_import_typelib() local 187 const_name = php_com_olestring_to_string(bstr_ids, &c.name_len, codepage TSRMLS_CC); in php_com_import_typelib() 188 c.name = zend_strndup(const_name, c.name_len); in php_com_import_typelib() 189 efree(const_name); in php_com_import_typelib()
|
/PHP-5.5/ext/date/ |
H A D | php_date.c | 2032 #define REGISTER_DATE_CLASS_CONST_STRING(const_name, value) \ in date_register_classes() argument 2033 …zend_declare_class_constant_stringl(date_ce_date, const_name, sizeof(const_name)-1, value, sizeof(… in date_register_classes() 2064 #define REGISTER_TIMEZONE_CLASS_CONST_STRING(const_name, value) \ in date_register_classes() argument 2065 …zend_declare_class_constant_long(date_ce_timezone, const_name, sizeof(const_name)-1, value TSRMLS_… in date_register_classes() 2107 #define REGISTER_PERIOD_CLASS_CONST_STRING(const_name, value) \ in date_register_classes() argument 2108 …zend_declare_class_constant_long(date_ce_period, const_name, sizeof(const_name)-1, value TSRMLS_CC… in date_register_classes()
|
/PHP-5.5/ext/zip/ |
H A D | php_zip.c | 410 #define REGISTER_ZIP_CLASS_CONST_LONG(const_name, value) \ argument 411 …zend_declare_class_constant_long(zip_class_entry, const_name, sizeof(const_name)-1, (long)value TS…
|
/PHP-5.5/ext/standard/ |
H A D | basic_functions.c | 634 ZEND_ARG_INFO(0, const_name) 3857 char *const_name; in PHP_FUNCTION() local 3860 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &const_name, &const_name_len) == FAILURE… in PHP_FUNCTION() 3864 …if (!zend_get_constant_ex(const_name, const_name_len, return_value, NULL, ZEND_FETCH_CLASS_SILENT … in PHP_FUNCTION() 3865 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", const_name); in PHP_FUNCTION()
|
/PHP-5.5/ext/phar/ |
H A D | phar_object.c | 5393 #define REGISTER_PHAR_CLASS_CONST_LONG(class_name, const_name, value) \ argument 5394 …zend_declare_class_constant_long(class_name, const_name, sizeof(const_name)-1, (long)value TSRMLS_…
|
/PHP-5.5/ext/reflection/ |
H A D | php_reflection.c | 111 #define REGISTER_REFLECTION_CLASS_CONST_LONG(class_name, const_name, value) … argument 112 …zend_declare_class_constant_long(reflection_ ## class_name ## _ptr, const_name, sizeof(const_name)…
|