Searched refs:pce (Results 1 - 25 of 30) sorted by relevance

12

/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dfuncs.c445 pcre_cache_entry *pce; local
455 if ((pce = pcre_get_compiled_regex_cache(Z_STR(patt) TSRMLS_CC)) == NULL) {
463 res = php_pcre_replace_impl(pce, ms->o.buf, strlen(ms->o.buf), &repl, 0, -1, &rep_cnt TSRMLS_CC);
H A Dsoftmagic.c359 pcre *pce; local
370 if ((pce = pcre_get_compiled_regex(pattern, &re_extra, &re_options TSRMLS_CC)) == NULL) {
373 rv = !pcre_exec(pce, re_extra, m->desc, strlen(m->desc), 0, re_options, NULL, 0);
2081 pcre_cache_entry *pce; local
2093 if ((pce = pcre_get_compiled_regex_cache(Z_STR(pattern) TSRMLS_CC)) == NULL) {
2097 /* pce now contains the compiled regex */
2109 php_pcre_match_impl(pce, haystack, ms->search.s_len, &retval, &subpats, 1, 1, PREG_OFFSET_CAPTURE, 0 TSRMLS_CC);
/PHP_TRUNK/ext/pcre/
H A Dphp_pcre.h59 PHPAPI void php_pcre_match_impl( pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value,
62 PHPAPI zend_string *php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value,
65 PHPAPI void php_pcre_split_impl( pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value,
68 PHPAPI void php_pcre_grep_impl( pcre_cache_entry *pce, zval *input, zval *return_value,
H A Dphp_pcre.c91 pcre_cache_entry *pce = (pcre_cache_entry *) Z_PTR_P(data); local
92 if (!pce) return;
93 pefree(pce->re, 1);
94 if (pce->extra) {
95 pcre_free_study(pce->extra);
98 if ((void*)pce->tables) pefree((void*)pce->tables, 1);
99 pefree(pce->locale, 1);
101 pefree(pce, 1);
190 static char **make_subpats_table(int num_subpats, pcre_cache_entry *pce TSRMLS_D
244 pcre_cache_entry *pce; local
488 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex TSRMLS_CC); local
505 pcre_cache_entry * pce = pcre_get_compiled_regex_cache(regex TSRMLS_CC); local
545 pcre_cache_entry *pce; /* Compiled regular expression */ local
577 php_pcre_match_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value, zval *subpats, int global, int use_flags, long flags, long start_offset TSRMLS_DC) argument
1084 pcre_cache_entry *pce; /* Compiled regular expression */ local
1097 php_pcre_replace_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *replace_val, int is_callable_replace, int limit, int *replace_count TSRMLS_DC) argument
1559 pcre_cache_entry *pce; /* Compiled regular expression */ local
1588 php_pcre_split_impl(pcre_cache_entry *pce, char *subject, int subject_len, zval *return_value, long limit_val, long flags TSRMLS_DC) argument
1866 pcre_cache_entry *pce; /* Compiled regular expression */ local
1892 php_pcre_grep_impl(pcre_cache_entry *pce, zval *input, zval *return_value, long flags TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/readline/
H A Dreadline_cli.c490 zend_class_entry **pce; local
491 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&pce TSRMLS_CC);
/PHP_TRUNK/ext/simplexml/
H A Dsxe.c190 zend_class_entry *pce; local
193 if ((pce = zend_hash_str_find_ptr(CG(class_table), "simplexmlelement", sizeof("SimpleXMLElement") - 1)) == NULL) {
199 ce_SimpleXMLElement = pce;
/PHP_TRUNK/ext/spl/
H A Dspl_functions.c80 void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags TSRMLS_DC) argument
82 if (!allow || (allow > 0 && pce->ce_flags & ce_flags) || (allow < 0 && !(pce->ce_flags & ce_flags))) {
85 if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) {
87 STR_ADDREF(pce->name);
88 ZVAL_STR(&t, pce->name);
89 zend_hash_add(Z_ARRVAL_P(list), pce->name, &t);
96 void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_flags TSRMLS_DC) argument
100 for (num_interfaces = 0; num_interfaces < pce->num_interfaces; num_interfaces++) {
101 spl_add_class_name(list, pce
107 spl_add_traits(zval *list, zend_class_entry * pce, int allow, int ce_flags TSRMLS_DC) argument
119 spl_add_classes(zend_class_entry *pce, zval *list, int sub, int allow, int ce_flags TSRMLS_DC) argument
[all...]
H A Dspl_engine.c35 PHPAPI void spl_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC) argument
37 object_init_ex(object, pce);
H A Dspl_engine.h28 PHPAPI void spl_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC);
33 static inline int spl_instantiate_arg_ex1(zend_class_entry *pce, zval *retval, zval *arg1 TSRMLS_DC) argument
35 zend_function *func = pce->constructor;
36 spl_instantiate(pce, retval TSRMLS_CC);
38 zend_call_method(retval, pce, &func, func->common.function_name->val, func->common.function_name->len, NULL, 1, arg1, NULL TSRMLS_CC);
44 static inline int spl_instantiate_arg_ex2(zend_class_entry *pce, zval *retval, zval *arg1, zval *arg2 TSRMLS_DC) argument
46 zend_function *func = pce->constructor;
47 spl_instantiate(pce, retval TSRMLS_CC);
49 zend_call_method(retval, pce, &func, func->common.function_name->val, func->common.function_name->len, NULL, 2, arg1, arg2 TSRMLS_CC);
H A Dspl_functions.h63 void spl_add_class_name(zval * list, zend_class_entry * pce, int allow, int ce_flags TSRMLS_DC);
64 void spl_add_interfaces(zval * list, zend_class_entry * pce, int allow, int ce_flags TSRMLS_DC);
65 void spl_add_traits(zval * list, zend_class_entry * pce, int allow, int ce_flags TSRMLS_DC);
66 int spl_add_classes(zend_class_entry *pce, zval *list, int sub, int allow, int ce_flags TSRMLS_DC);
H A Dspl_iterators.c1558 intern->u.regex.pce = pcre_get_compiled_regex_cache(regex TSRMLS_CC);
1559 if (intern->u.regex.pce == NULL) {
1564 intern->u.regex.pce->refcount++;
2063 count = pcre_exec(intern->u.regex.pce->re, intern->u.regex.pce->extra, subject, subject_len, 0, 0, NULL, 0);
2075 php_pcre_match_impl(intern->u.regex.pce, subject, subject_len, &zcount,
2088 php_pcre_split_impl(intern->u.regex.pce, subject, subject_len, &intern->current.data, -1, intern->u.regex.preg_flags TSRMLS_CC);
2101 result = php_pcre_replace_impl(intern->u.regex.pce, subject, subject_len, replacement, 0, -1, &count TSRMLS_CC);
2318 if (object->u.regex.pce) {
2319 object->u.regex.pce
[all...]
H A Dspl_iterators.h161 pcre_cache_entry *pce; member in struct:_spl_dual_it_object::__anon160::__anon164
/PHP_TRUNK/Zend/
H A Dzend_API.c355 ZEND_API int _z_param_class(zval *arg, zend_class_entry **pce, int num, int check_null TSRMLS_DC) /* {{{ */ argument
357 zend_class_entry *ce_base = *pce;
360 *pce = NULL;
364 *pce = zend_lookup_class(Z_STR_P(arg) TSRMLS_CC);
366 if ((!*pce || !instanceof_function(*pce, ce_base TSRMLS_CC))) {
373 *pce = NULL;
377 if (!*pce) {
777 zend_class_entry *lookup, **pce = va_arg(*va, zend_class_entry **); local
778 zend_class_entry *ce_base = *pce;
[all...]
H A Dzend_execute.c528 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, zend_uint_t fetch_type, char **class_name, zend_class_entry **pce TSRMLS_DC)
534 *pce = zend_fetch_class(key, (fetch_type | ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD) TSRMLS_CC);
537 *class_name = (*pce) ? (*pce)->name->val : (char*)cur_arg_info->class_name;
538 if (*pce && (*pce)->ce_flags & ZEND_ACC_INTERFACE) {
H A Dzend_execute.h51 ZEND_API char * zend_verify_arg_class_kind(const zend_arg_info *cur_arg_info, zend_uint_t fetch_type, char **class_name, zend_class_entry **pce TSRMLS_DC);
/PHP_TRUNK/ext/date/
H A Dphp_date.h224 PHPAPI zval *php_date_instantiate(zend_class_entry *pce, zval *object TSRMLS_DC);
/PHP_TRUNK/ext/opcache/
H A Dzend_accelerator_util_funcs.c586 static void zend_class_copy_ctor(zend_class_entry **pce) argument
588 zend_class_entry *ce = *pce;
594 *pce = ce = zend_arena_alloc(&CG(arena), sizeof(zend_class_entry));
/PHP_TRUNK/ext/pdo/
H A Dpdo.c85 zend_class_entry *pce; local
87 if ((pce = zend_hash_str_find_ptr(CG(class_table), "runtimeexception", sizeof("RuntimeException") - 1))) {
88 spl_ce_RuntimeException = pce;
89 return pce;
H A Dpdo_dbh.c485 zend_class_entry *dbstmt_ce, *pce; local
500 || (pce = zend_lookup_class(Z_STR_P(item) TSRMLS_CC)) == NULL
509 dbstmt_ce = pce;
755 zend_class_entry *pce; local
768 || (pce = zend_lookup_class(Z_STR_P(item) TSRMLS_CC)) == NULL
777 if (!instanceof_function(pce, pdo_dbstmt_ce TSRMLS_CC)) {
783 if (pce->constructor && !(pce->constructor->common.fn_flags & (ZEND_ACC_PRIVATE|ZEND_ACC_PROTECTED))) {
789 dbh->def_stmt_ce = pce;
H A Dphp_pdo.h65 zend_class_entry **pce; \
66 if (zend_hash_find(CG(class_table), "pdo", sizeof("pdo"), (void **) &pce) != FAILURE) \
67 zend_declare_class_constant_int(*pce, const_name, sizeof(const_name)-1, (php_int_t)value TSRMLS_CC); \
/PHP_TRUNK/ext/sybase_ct/
H A Dphp_sybase_ct.c1867 zend_class_entry **pce = NULL; local
1870 if (zend_lookup_class(Z_STRVAL_P(object), Z_STRSIZE_P(object), &pce TSRMLS_CC) == FAILURE) {
1874 ce = *pce;
/PHP_TRUNK/ext/tidy/
H A Dtidy.c725 static zval * tidy_instanciate(zend_class_entry *pce, zval *object TSRMLS_DC) argument
727 object_init_ex(object, pce);
/PHP_TRUNK/ext/wddx/
H A Dwddx.c870 zend_class_entry *pce; local
927 if ((pce = zend_hash_find_ptr(EG(class_table), Z_STR(ent1->data))) == NULL) {
929 pce = PHP_IC_ENTRY;
933 object_init_ex(&obj, pce);
/PHP_TRUNK/sapi/cli/
H A Dphp_cli.c1075 zend_class_entry *pce = NULL; local
1084 pce = reflection_method_ptr;
1086 pce = reflection_function_ptr;
1090 pce = reflection_class_ptr;
1093 pce = reflection_extension_ptr;
1096 pce = reflection_zend_extension_ptr;
1101 object_init_ex(&ref, pce);
1105 zend_call_method_with_1_params(&ref, pce, &pce->constructor, "__construct", NULL, &arg);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_info.c311 zend_class_entry *pce = (*ce)->parent; local
314 phpdbg_print_class_name(&pce TSRMLS_CC);
316 } while ((pce = pce->parent));

Completed in 43 milliseconds

12