/php-src/win32/ |
H A D | cp_enc_map_gen.c | 176 struct cp *cur; in main() local 208 cur = &cp_map[0]; in main() 211 while (rnd <= 2 && ++rnd && (cur = &cp_map[0])) in main() 213 while (cur->desc != NULL) { in main() 214 if (!IsValidCodePage(cur->id)) { in main() 218 printf("\t/* %u is invalid */\n", cur->id); in main() 220 } else if (GetCPInfoEx(cur->id, 0, &info)) { in main() 223 if (65001U == cur->id || 54936U == cur->id) { in main() 229 if (!cur->enc[0]) { in main() 239 …, \"%s\" },\n", info.CodePage, to_w_fl, from_w_fl, info.MaxCharSize, cur->name, cur->enc, info.Cod… in main() [all …]
|
H A D | codepage.c | 431 char *cur = (char *)env, *prev; in php_win32_cp_env_any_to_w() local 442 tmp = php_win32_cp_any_to_w(cur); in php_win32_cp_env_any_to_w() 451 prev = cur; in php_win32_cp_env_any_to_w() 453 } while (NULL != (cur = strchr(prev, '\0')) && cur++ && *cur && bin_len + (cur - prev) < 32760); in php_win32_cp_env_any_to_w()
|
/php-src/ext/dom/ |
H A D | characterdata.c | 107 xmlChar *cur; in PHP_METHOD() local 122 cur = node->content; in PHP_METHOD() 123 if (cur == NULL) { in PHP_METHOD() 125 cur = BAD_CAST ""; in PHP_METHOD() 216 cur = node->content; in dom_character_data_insert_data() 217 if (cur == NULL) { in dom_character_data_insert_data() 219 cur = BAD_CAST ""; in dom_character_data_insert_data() 286 if (cur == NULL) { in dom_character_data_delete_data() 288 cur = BAD_CAST ""; in dom_character_data_delete_data() 360 if (cur == NULL) { in dom_character_data_replace_data() [all …]
|
H A D | text.c | 104 xmlChar *cur; in PHP_METHOD() local 124 cur = node->content; in PHP_METHOD() 125 if (cur == NULL) { in PHP_METHOD() 127 cur = BAD_CAST ""; in PHP_METHOD() 129 length = xmlUTF8Strlen(cur); in PHP_METHOD() 138 first = xmlUTF8Strndup(cur, (int)offset); in PHP_METHOD() 139 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_METHOD()
|
H A D | documenttype.c | 135 xmlNodePtr cur = intsubset->children; in dom_documenttype_internal_subset_read() local 137 while (cur != NULL) { in dom_documenttype_internal_subset_read() 141 xmlNodeDumpOutput (buff, NULL, cur, 0, 0, NULL); in dom_documenttype_internal_subset_read() 149 cur = cur->next; in dom_documenttype_internal_subset_read()
|
H A D | html_collection.c | 49 int cur = 0; in dom_html_collection_named_item() local 50 int next = cur; /* not +1, otherwise we skip the first candidate */ in dom_html_collection_named_item() 53 …s_by_tag_name_ns_raw(basep, candidate, objmap->ns, objmap->local, objmap->local_lower, &cur, next); in dom_html_collection_named_item() 75 next = cur + 1; in dom_html_collection_named_item()
|
H A D | namespace_compat.c | 472 for (const xmlNode *cur = node; cur != NULL; cur = cur->parent) { in php_dom_get_in_scope_ns() local 473 if (cur->type == XML_ELEMENT_NODE) { in php_dom_get_in_scope_ns() 475 if (cur->ns != NULL && cur->ns->prefix != NULL) { in php_dom_get_in_scope_ns() 476 const char *prefix = (const char *) cur->ns->prefix; in php_dom_get_in_scope_ns() 477 zend_hash_str_add_ptr(&tmp_prefix_to_ns_table, prefix, strlen(prefix), cur->ns); in php_dom_get_in_scope_ns() 481 for (const xmlAttr *attr = cur->properties; attr != NULL; attr = attr->next) { in php_dom_get_in_scope_ns()
|
H A D | document.c | 1697 xincnode = cur; in php_dom_free_xinclude_node() 1698 cur = cur->next; in php_dom_free_xinclude_node() 1702 return cur; in php_dom_free_xinclude_node() 1708 while(cur) { in php_dom_remove_xinclude_nodes() 1710 cur = php_dom_free_xinclude_node(cur); in php_dom_remove_xinclude_nodes() 1713 while(cur && cur->type != XML_XINCLUDE_END) { in php_dom_remove_xinclude_nodes() 1718 cur = cur->next; in php_dom_remove_xinclude_nodes() 1721 if (cur && cur->type == XML_XINCLUDE_END) { in php_dom_remove_xinclude_nodes() 1722 cur = php_dom_free_xinclude_node(cur); in php_dom_remove_xinclude_nodes() 1725 if (cur->type == XML_ELEMENT_NODE) { in php_dom_remove_xinclude_nodes() [all …]
|
H A D | dom_iterators.c | 29 int cur; member 43 if (priv->cur < priv->index) { in itemHashScanner() 44 priv->cur++; in itemHashScanner() 71 iter.cur = 0; in php_dom_libxml_hash_iter_ex()
|
/php-src/Zend/ |
H A D | zend_gc.h | 115 zval *cur; member 126 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_zval() 129 ZVAL_COPY_VALUE(gc_buffer->cur, zv); in zend_get_gc_buffer_add_zval() 130 gc_buffer->cur++; in zend_get_gc_buffer_add_zval() 136 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_obj() 139 ZVAL_OBJ(gc_buffer->cur, obj); in zend_get_gc_buffer_add_obj() 140 gc_buffer->cur++; in zend_get_gc_buffer_add_obj() 145 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_ptr() 148 ZVAL_PTR(gc_buffer->cur, ptr); in zend_get_gc_buffer_add_ptr() 149 gc_buffer->cur++; in zend_get_gc_buffer_add_ptr() [all …]
|
/php-src/ext/dba/ |
H A D | dba_lmdb.c | 34 MDB_cursor *cur; member 137 if (LMDB_IT(cur)) { in DBA_FETCH_FUNC() 163 if (LMDB_IT(cur)) { in DBA_FETCH_FUNC() 212 if (LMDB_IT(cur)) { in DBA_EXISTS_FUNC() 234 if (LMDB_IT(cur)) { in DBA_EXISTS_FUNC() 293 rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_FIRST); in DBA_FIRSTKEY_FUNC() 296 mdb_cursor_close(LMDB_IT(cur)); in DBA_FIRSTKEY_FUNC() 297 LMDB_IT(cur) = NULL; in DBA_FIRSTKEY_FUNC() 325 rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_NEXT); in DBA_NEXTKEY_FUNC() 328 mdb_cursor_close(LMDB_IT(cur)); in DBA_NEXTKEY_FUNC() [all …]
|
/php-src/ext/soap/ |
H A D | php_packet_soap.c | 26 xmlNodePtr trav, env, head, body, resp, cur, fault; in parse_packet_soap() local 286 cur = get_node_ex(resp, name, ns); in parse_packet_soap() 287 if (!cur) { in parse_packet_soap() 288 cur = get_node(resp, name); in parse_packet_soap() 291 if (!cur && fnb->style == SOAP_RPC) { in parse_packet_soap() 292 cur = resp; in parse_packet_soap() 294 if (cur) { in parse_packet_soap() 296 val = cur; in parse_packet_soap() 301 val = get_node(cur->children, "return"); in parse_packet_soap() 306 if (val == NULL && cur->children && cur->children->next == NULL) { in parse_packet_soap() [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | bug77935.phpt | 20 DECLARE `cur` CURSOR FOR SELECT 1; 21 OPEN `cur`; 22 CLOSE `cur`;
|
/php-src/ext/standard/tests/array/ |
H A D | current_variation6.phpt | 7 while ($cur = current($array)) { 8 var_dump($cur);
|
/php-src/ext/intl/breakiterator/ |
H A D | breakiterator_iterators.cpp | 159 int32_t cur, in _breakiterator_parts_move_forward() local 162 cur = bio->biter->current(); in _breakiterator_parts_move_forward() 163 if (cur == BreakIterator::DONE) { in _breakiterator_parts_move_forward() 172 iter->index = cur; in _breakiterator_parts_move_forward() 183 assert(next <= Z_STRLEN(bio->text) && next >= cur); in _breakiterator_parts_move_forward() 184 res = zend_string_alloc(next - cur, 0); in _breakiterator_parts_move_forward() 186 memcpy(ZSTR_VAL(res), &s[cur], ZSTR_LEN(res)); in _breakiterator_parts_move_forward()
|
/php-src/ext/xsl/ |
H A D | xsltprocessor.c | 130 …xsltTransformError(NULL, sheet, (xmlNodePtr) cur, "Namespaces prefix %s used for multiple namespac… in xsl_add_ns_to_map() 140 const xmlNode *cur = xmlDocGetRootElement(doc); in xsl_build_ns_map() local 142 while (cur != NULL) { in xsl_build_ns_map() 143 if (cur->type == XML_ELEMENT_NODE) { in xsl_build_ns_map() 144 if (cur->ns != NULL && cur->ns->prefix != NULL) { in xsl_build_ns_map() 145 xsl_add_ns_to_map(table, sheet, cur, cur->ns->prefix, cur->ns->href); in xsl_build_ns_map() 148 for (const xmlAttr *attr = cur->properties; attr != NULL; attr = attr->next) { in xsl_build_ns_map() 155 xsl_add_ns_to_map(table, sheet, cur, prefix, ns->href); in xsl_build_ns_map() 159 if (cur->children != NULL) { in xsl_build_ns_map() 160 cur = cur->children; in xsl_build_ns_map() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_print.c | 370 phpdbg_oplog_entry *cur = zend_arena_alloc(&PHPDBG_G(oplog_arena), sizeof(phpdbg_oplog_entry)); in phpdbg_print_opline() local 372 cur->op = (zend_op *) EX(opline); in phpdbg_print_opline() 373 cur->opcodes = op_array->opcodes; in phpdbg_print_opline() 374 cur->filename = op_array->filename; in phpdbg_print_opline() 375 cur->scope = op_array->scope; in phpdbg_print_opline() 376 cur->function_name = op_array->function_name; in phpdbg_print_opline() 377 cur->next = NULL; in phpdbg_print_opline() 378 PHPDBG_G(oplog_cur)->next = cur; in phpdbg_print_opline() 379 PHPDBG_G(oplog_cur) = cur; in phpdbg_print_opline()
|
H A D | phpdbg.c | 207 efree(cur); in PHP_MSHUTDOWN_FUNCTION() 208 cur = prev; in PHP_MSHUTDOWN_FUNCTION() 209 } while (cur != NULL); in PHP_MSHUTDOWN_FUNCTION() 459 for (; cur < end; cur++) { in phpdbg_oplog_fill_executable() 468 insert_idx = cur->lineno; in phpdbg_oplog_fill_executable() 472 cur++; in phpdbg_oplog_fill_executable() 590 phpdbg_oplog_entry *cur; in PHP_FUNCTION() local 649 } else if (cur->function_name != last_function || cur->scope != last_scope) { in PHP_FUNCTION() 652 last_scope = cur->scope; in PHP_FUNCTION() 664 insert_idx = cur->op - cur->opcodes; in PHP_FUNCTION() [all …]
|
H A D | phpdbg_utils.c | 613 zend_op *cur; in phpdbg_check_caught_ex() local 632 cur = &op_array->opcodes[catch]; in phpdbg_check_caught_ex() 636 if (!(ce = CACHED_PTR(cur->extended_value & ~ZEND_LAST_CATCH))) { in phpdbg_check_caught_ex() 637 …ce = zend_fetch_class_by_name(Z_STR_P(RT_CONSTANT(cur, cur->op1)), Z_STR_P(RT_CONSTANT(cur, cur->o… in phpdbg_check_caught_ex() 638 CACHE_PTR(cur->extended_value & ~ZEND_LAST_CATCH, ce); in phpdbg_check_caught_ex() 645 if (cur->extended_value & ZEND_LAST_CATCH) { in phpdbg_check_caught_ex() 649 cur = OP_JMP_ADDR(cur, cur->op2); in phpdbg_check_caught_ex()
|
H A D | phpdbg_bp.c | 343 …lve_pending_file_break_ex(const char *file, uint32_t filelen, zend_string *cur, HashTable *fileht)… in phpdbg_resolve_pending_file_break_ex() argument 345 …cur), ZSTR_LEN(cur), filelen > ZSTR_LEN(cur) ? file[filelen - ZSTR_LEN(cur) - 1] : '?', filelen > … in phpdbg_resolve_pending_file_break_ex() 348 # define WIN32_PATH_CHECK file[filelen - ZSTR_LEN(cur) - 1] == '\\' in phpdbg_resolve_pending_file_break_ex() 353 …cur) < filelen && (file[filelen - ZSTR_LEN(cur) - 1] == '/' || WIN32_PATH_CHECK)) || filelen == ZS… in phpdbg_resolve_pending_file_break_ex() 375 zend_hash_del(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], cur); in phpdbg_resolve_pending_file_break_ex() 381 phpdbg_debug("compiled file: %s, cur bp file: %s\n", file, ZSTR_VAL(cur)); in phpdbg_resolve_pending_file_break_ex() 393 zend_string *cur; in phpdbg_resolve_pending_file_break() local 397 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&PHPDBG_G(bp)[PHPDBG_BREAK_FILE_PENDING], cur, fileht) { in phpdbg_resolve_pending_file_break() 398 phpdbg_debug("check bp: %s\n", ZSTR_VAL(cur)); in phpdbg_resolve_pending_file_break() 400 phpdbg_resolve_pending_file_break_ex(file, filelen, cur, fileht); in phpdbg_resolve_pending_file_break()
|
H A D | phpdbg_btree.c | 127 pos.cur = higher_idx; in phpdbg_btree_find_between() 133 phpdbg_btree_result *result = phpdbg_btree_find_closest(pos->tree, pos->cur); in phpdbg_btree_next() 139 pos->cur = result->idx - 1; in phpdbg_btree_next()
|
H A D | phpdbg_btree.h | 44 zend_ulong cur; member
|
/php-src/ext/pdo/ |
H A D | pdo_sql_parser.re | 29 #define RET(i) {s->cur = cursor; return i; } 30 #define SKIP_ONE(i) {s->cur = s->tok + 1; return i; } 39 const char *ptr, *cur, *tok, *end; 44 const char *cursor = s->cur; 95 s.cur = ZSTR_VAL(inquery); 96 s.end = s.cur + ZSTR_LEN(inquery) + 1; 107 ptrdiff_t len = s.cur - s.tok; 108 if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum(*(s.cur - len - 1))) { 120 plc->len = s.cur - s.tok;
|
/php-src/main/ |
H A D | fastcgi.c | 769 cur = ip; in fcgi_listen() 773 cur++; in fcgi_listen() 777 cur = ip; in fcgi_listen() 778 while (cur) { in fcgi_listen() 795 cur = end; in fcgi_listen() 828 cur = ip; in fcgi_set_allowed_clients() 830 while (*cur) { in fcgi_set_allowed_clients() 832 cur++; in fcgi_set_allowed_clients() 837 cur = ip; in fcgi_set_allowed_clients() 838 while (cur) { in fcgi_set_allowed_clients() [all …]
|
/php-src/ext/date/lib/ |
H A D | parse_iso_intervals.re | 56 #define RET(i) {s->cur = cursor; return i;} 60 #define TIMELIB_INIT s->cur = cursor; str = timelib_string(s); ptr = str 73 uchar *lim, *str, *ptr, *cur, *tok, *pos; 100 char *tmp = timelib_calloc(1, s->cur - s->tok + 1); 101 memcpy(tmp, s->tok, s->cur - s->tok); 170 uchar *cursor = s->cur; 369 in.cur = in.str;
|