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

/PHP_5_5/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_5/ext/phar/
H A Dphar_object.c5342 #define REGISTER_PHAR_CLASS_CONST_LONG(class_name, const_name, value) \
5343 zend_declare_class_constant_long(class_name, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_5/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_5/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_5/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_5/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_5/ext/zip/
H A Dphp_zip.c410 #define REGISTER_ZIP_CLASS_CONST_LONG(const_name, value) \
411 zend_declare_class_constant_long(zip_class_entry, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
/PHP_5_5/Zend/
H A Dzend_compile.c5499 static zend_constant* zend_get_ct_const(const zval *const_name, int all_internal_constants_substitution TSRMLS_DC) /* {{{ */ argument
5503 if (Z_STRVAL_P(const_name)[0] == '\\') {
5504 if (zend_hash_find(EG(zend_constants), Z_STRVAL_P(const_name)+1, Z_STRLEN_P(const_name), (void **) &c) == FAILURE) {
5505 char *lookup_name = zend_str_tolower_dup(Z_STRVAL_P(const_name)+1, Z_STRLEN_P(const_name)-1);
5507 if (zend_hash_find(EG(zend_constants), lookup_name, Z_STRLEN_P(const_name), (void **) &c)==SUCCESS) {
5516 } else if (zend_hash_find(EG(zend_constants), Z_STRVAL_P(const_name), Z_STRLEN_P(const_name)+1, (void **) &c) == FAILURE) {
5517 char *lookup_name = zend_str_tolower_dup(Z_STRVAL_P(const_name), Z_STRLEN_
5542 zend_constant_ct_subst(znode *result, zval *const_name, int all_internal_constants_substitution TSRMLS_DC) argument
[all...]
H A Dzend_constants.c241 char *const_name; local
245 const_name = do_alloca(const_name_len, use_heap);
246 memcpy(const_name, "\0__CLASS__", sizeof("\0__CLASS__")-1);
247 zend_str_tolower_copy(const_name + sizeof("\0__CLASS__")-1, EG(scope)->name, EG(scope)->name_length);
248 if (zend_hash_find(EG(zend_constants), const_name, const_name_len, (void**)c) == FAILURE) {
249 zend_hash_add(EG(zend_constants), const_name, const_name_len, (void*)&tmp, sizeof(zend_constant), (void**)c); local
255 free_alloca(const_name, use_heap);
/PHP_5_5/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_5/ext/standard/
H A Dbasic_functions.c634 ZEND_ARG_INFO(0, const_name)
3849 /* {{{ proto mixed constant(string const_name)
3853 char *const_name; local
3856 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &const_name, &const_name_len) == FAILURE) {
3860 if (!zend_get_constant_ex(const_name, const_name_len, return_value, NULL, ZEND_FETCH_CLASS_SILENT TSRMLS_CC)) {
3861 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", const_name);
/PHP_5_5/ext/date/
H A Dphp_date.c2022 #define REGISTER_DATE_CLASS_CONST_STRING(const_name, value) \
2023 zend_declare_class_constant_stringl(date_ce_date, const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);
2054 #define REGISTER_TIMEZONE_CLASS_CONST_STRING(const_name, value) \
2055 zend_declare_class_constant_long(date_ce_timezone, const_name, sizeof(const_name)-1, value TSRMLS_CC);
2097 #define REGISTER_PERIOD_CLASS_CONST_STRING(const_name, value) \
2098 zend_declare_class_constant_long(date_ce_period, const_name, sizeof(const_name)-1, value TSRMLS_CC);

Completed in 58 milliseconds