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

/PHP_TRUNK/Zend/
H A Dzend_constants.c240 zend_string *const_name; local
243 const_name = zend_string_alloc(const_name_len, 0);
244 memcpy(const_name->val, "\0__CLASS__", sizeof("\0__CLASS__")-1);
245 zend_str_tolower_copy(const_name->val + sizeof("\0__CLASS__")-1, EG(scope)->name->val, EG(scope)->name->len);
246 if ((c = zend_hash_find_ptr(EG(zend_constants), const_name)) == NULL) {
250 zend_hash_add_ptr(EG(zend_constants), const_name, c); local
252 zend_string_release(const_name);
254 zend_string *const_name = zend_string_init("\0__CLASS__", sizeof("\0__CLASS__")-1, 0); local
255 if ((c = zend_hash_find_ptr(EG(zend_constants), const_name)) == NULL) {
259 zend_hash_add_ptr(EG(zend_constants), const_name, local
[all...]
H A Dzend_compile.c2796 static int zend_constant_ct_subst(znode *result, zval *const_name, int all_internal_constants_substitution TSRMLS_DC) /* {{{ */ argument
2798 zend_constant *c = zend_get_ct_const(Z_STR_P(const_name),
6344 const char const_name[] = "__COMPILER_HALT_OFFSET__"; local
6352 name = zend_mangle_property_name(const_name, sizeof(const_name) - 1,
7184 zend_string *const_name = zend_ast_get_str(const_ast); local
7207 class_name->val, class_name->len, "::", 2, const_name->val, const_name->len);
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_typeinfo.c166 char *const_name; local
188 const_name = php_com_olestring_to_string(bstr_ids, &len, codepage TSRMLS_CC);
189 c.name = zend_string_init(const_name, len, 1);
191 efree(const_name);
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo.h61 #define REGISTER_PDO_CLASS_CONST_LONG(const_name, value) \
62 zend_declare_class_constant_long(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC);
64 #define REGISTER_PDO_CONST_LONG(const_name, value) { \
67 zend_declare_class_constant_long(*pce, const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC); \
70 #define REGISTER_PDO_CLASS_CONST_STRING(const_name, value) \
71 zend_declare_class_constant_stringl(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);
/PHP_TRUNK/ext/phar/
H A Dphar_object.c5269 #define REGISTER_PHAR_CLASS_CONST_LONG(class_name, const_name, value) \
5270 zend_declare_class_constant_long(class_name, const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC);
/PHP_TRUNK/ext/snmp/
H A Dphp_snmp.h135 #define REGISTER_SNMP_CLASS_CONST_LONG(const_name, value) \
136 zend_declare_class_constant_long(php_snmp_ce, const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC);
/PHP_TRUNK/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, (zend_long)value TSRMLS_CC);
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.c618 ZEND_ARG_INFO(0, const_name)
3812 /* {{{ proto mixed constant(string const_name)
3816 zend_string *const_name; local
3819 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &const_name) == FAILURE) {
3823 c = zend_get_constant_ex(const_name, NULL, ZEND_FETCH_CLASS_SILENT TSRMLS_CC);
3831 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Couldn't find constant %s", const_name->val);
/PHP_TRUNK/ext/date/
H A Dphp_date.c2017 #define REGISTER_DATE_CLASS_CONST_STRING(const_name, value) \
2018 zend_declare_class_constant_stringl(date_ce_date, const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);
2051 #define REGISTER_TIMEZONE_CLASS_CONST_STRING(const_name, value) \
2052 zend_declare_class_constant_long(date_ce_timezone, const_name, sizeof(const_name)-1, value TSRMLS_CC);
2098 #define REGISTER_PERIOD_CLASS_CONST_STRING(const_name, value) \
2099 zend_declare_class_constant_long(date_ce_period, const_name, sizeof(const_name)-1, value TSRMLS_CC);
/PHP_TRUNK/ext/reflection/
H A Dphp_reflection.c113 #define REGISTER_REFLECTION_CLASS_CONST_LONG(class_name, const_name, value) \
114 zend_declare_class_constant_long(reflection_ ## class_name ## _ptr, const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC);
/PHP_TRUNK/ext/xmlreader/
H A Dphp_xmlreader.h53 #define REGISTER_XMLREADER_CLASS_CONST_LONG(const_name, value) \
54 zend_declare_class_constant_long(xmlreader_class_entry, const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC);
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c375 #define REGISTER_ZIP_CLASS_CONST_LONG(const_name, value) \
376 zend_declare_class_constant_long(zip_class_entry, const_name, sizeof(const_name)-1, (zend_long)value TSRMLS_CC);

Completed in 61 milliseconds