Home
last modified time | relevance | path

Searched refs:cur (Results 1 – 25 of 58) sorted by relevance

123

/php-src/win32/
H A Dcp_enc_map_gen.c176 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 Dcodepage.c431 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/Zend/
H A Dzend_gc.h116 zval *cur; member
127 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_zval()
130 ZVAL_COPY_VALUE(gc_buffer->cur, zv); in zend_get_gc_buffer_add_zval()
131 gc_buffer->cur++; in zend_get_gc_buffer_add_zval()
137 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_obj()
140 ZVAL_OBJ(gc_buffer->cur, obj); in zend_get_gc_buffer_add_obj()
141 gc_buffer->cur++; in zend_get_gc_buffer_add_obj()
146 if (UNEXPECTED(gc_buffer->cur == gc_buffer->end)) { in zend_get_gc_buffer_add_ptr()
149 ZVAL_PTR(gc_buffer->cur, ptr); in zend_get_gc_buffer_add_ptr()
150 gc_buffer->cur++; in zend_get_gc_buffer_add_ptr()
[all …]
/php-src/ext/dom/
H A Dcharacterdata.c121 const xmlChar *cur = php_dom_get_content_or_empty(node); in PHP_METHOD() local
123 length = xmlUTF8Strlen(cur); in PHP_METHOD()
142 substring = xmlUTF8Strsub(cur, (int)offset, (int)count); in PHP_METHOD()
207 const xmlChar *cur = php_dom_get_content_or_empty(node); in dom_character_data_insert_data() local
209 length = xmlUTF8Strlen(cur); in dom_character_data_insert_data()
225 first = xmlUTF8Strndup(cur, (int)offset); in dom_character_data_insert_data()
272 const xmlChar *cur = php_dom_get_content_or_empty(node); in dom_character_data_delete_data() local
274 length = xmlUTF8Strlen(cur); in dom_character_data_delete_data()
286 substring = xmlUTF8Strsub(cur, 0, (int)offset); in dom_character_data_delete_data()
344 length = xmlUTF8Strlen(cur); in dom_character_data_replace_data()
[all …]
H A Ddocumenttype.c135 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 Dtext.c119 const xmlChar *cur = php_dom_get_content_or_empty(node); in PHP_METHOD() local
120 length = xmlUTF8Strlen(cur); in PHP_METHOD()
129 first = xmlUTF8Strndup(cur, (int)offset); in PHP_METHOD()
130 second = xmlUTF8Strsub(cur, (int)offset, (int)(length - offset)); in PHP_METHOD()
H A Dhtml_collection.c49 zend_long cur = 0; in dom_html_collection_named_item() local
50 zend_long 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 Dnamespace_compat.c440 for (const xmlNode *cur = node; cur != NULL; cur = cur->parent) { in php_dom_get_in_scope_ns() local
441 if (cur->type == XML_ELEMENT_NODE) { in php_dom_get_in_scope_ns()
443 if (!ignore_elements && cur->ns != NULL && cur->ns->prefix != NULL) { in php_dom_get_in_scope_ns()
444 const char *prefix = (const char *) cur->ns->prefix; in php_dom_get_in_scope_ns()
445 zend_hash_str_add_ptr(&tmp_prefix_to_ns_table, prefix, strlen(prefix), cur->ns); in php_dom_get_in_scope_ns()
449 for (const xmlAttr *attr = cur->properties; attr != NULL; attr = attr->next) { in php_dom_get_in_scope_ns()
H A Ddocument.c1675 xincnode = cur; in php_dom_free_xinclude_node()
1676 cur = cur->next; in php_dom_free_xinclude_node()
1680 return cur; in php_dom_free_xinclude_node()
1686 while(cur) { in php_dom_remove_xinclude_nodes()
1688 cur = php_dom_free_xinclude_node(cur); in php_dom_remove_xinclude_nodes()
1691 while(cur && cur->type != XML_XINCLUDE_END) { in php_dom_remove_xinclude_nodes()
1696 cur = cur->next; in php_dom_remove_xinclude_nodes()
1699 if (cur && cur->type == XML_XINCLUDE_END) { in php_dom_remove_xinclude_nodes()
1700 cur = php_dom_free_xinclude_node(cur); in php_dom_remove_xinclude_nodes()
1703 if (cur->type == XML_ELEMENT_NODE) { in php_dom_remove_xinclude_nodes()
[all …]
H A Ddom_iterators.c28 int cur; member
42 if (priv->cur < priv->index) { in itemHashScanner()
43 priv->cur++; in itemHashScanner()
70 iter.cur = 0; in php_dom_libxml_hash_iter_ex()
H A Dhtml_document.c1478 xmlNodePtr cur = root->children; in dom_html_document_element_read_raw() local
1479 while (cur != NULL) { in dom_html_document_element_read_raw()
1480 …if (cur->type == XML_ELEMENT_NODE && php_dom_ns_is_fast(cur, php_dom_ns_is_html_magic_token) && ac… in dom_html_document_element_read_raw()
1481 return cur; in dom_html_document_element_read_raw()
1483 cur = cur->next; in dom_html_document_element_read_raw()
1606 xmlNodePtr cur = svg->children; in dom_get_svg_title_element() local
1608 while (cur != NULL) { in dom_get_svg_title_element()
1609 if (cur->type == XML_ELEMENT_NODE in dom_get_svg_title_element()
1610 …&& php_dom_ns_is_fast(cur, php_dom_ns_is_svg_magic_token) && xmlStrEqual(cur->name, BAD_CAST "titl… in dom_get_svg_title_element()
1613 cur = cur->next; in dom_get_svg_title_element()
[all …]
/php-src/ext/dba/
H A Ddba_lmdb.c34 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 Dphp_packet_soap.c26 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/pdo/
H A Dpdo_sql_parser.h26 #define RET(i) {s->cur = cursor; return i; }
27 #define SKIP_ONE(i) {s->cur = s->tok + 1; return i; }
H A Dpdo_sql_parser.re23 const char *cursor = s->cur;
81 s.cur = ZSTR_VAL(inquery);
82 s.end = s.cur + ZSTR_LEN(inquery) + 1;
88 …if (t == PDO_PARSER_CUSTOM_QUOTE && custom_quote.len == s.cur - s.tok && !strncmp(s.tok, custom_qu…
107 custom_quote.len = s.cur - s.tok;
119 ptrdiff_t len = s.cur - s.tok;
120 if ((ZSTR_VAL(inquery) < (s.cur - len)) && isalnum(*(s.cur - len - 1))) {
133 plc->len = s.cur - s.tok;
/php-src/ext/mysqli/tests/
H A Dbug77935.phpt20 DECLARE `cur` CURSOR FOR SELECT 1;
21 OPEN `cur`;
22 CLOSE `cur`;
/php-src/ext/standard/tests/array/
H A Dcurrent_variation6.phpt7 while ($cur = current($array)) {
8 var_dump($cur);
/php-src/ext/intl/breakiterator/
H A Dbreakiterator_iterators.cpp159 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/sapi/phpdbg/
H A Dphpdbg_print.c370 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 Dphpdbg.c208 efree(cur); in PHP_MSHUTDOWN_FUNCTION()
209 cur = prev; in PHP_MSHUTDOWN_FUNCTION()
210 } while (cur != NULL); in PHP_MSHUTDOWN_FUNCTION()
461 for (; cur < end; cur++) { in phpdbg_oplog_fill_executable()
470 insert_idx = cur->lineno; in phpdbg_oplog_fill_executable()
474 cur++; in phpdbg_oplog_fill_executable()
592 phpdbg_oplog_entry *cur; in PHP_FUNCTION() local
651 } else if (cur->function_name != last_function || cur->scope != last_scope) { in PHP_FUNCTION()
654 last_scope = cur->scope; in PHP_FUNCTION()
666 insert_idx = cur->op - cur->opcodes; in PHP_FUNCTION()
[all …]
H A Dphpdbg_utils.c614 zend_op *cur; in phpdbg_check_caught_ex() local
633 cur = &op_array->opcodes[catch]; in phpdbg_check_caught_ex()
637 if (!(ce = CACHED_PTR(cur->extended_value & ~ZEND_LAST_CATCH))) { in phpdbg_check_caught_ex()
638 …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()
639 CACHE_PTR(cur->extended_value & ~ZEND_LAST_CATCH, ce); in phpdbg_check_caught_ex()
646 if (cur->extended_value & ZEND_LAST_CATCH) { in phpdbg_check_caught_ex()
650 cur = OP_JMP_ADDR(cur, cur->op2); in phpdbg_check_caught_ex()
H A Dphpdbg_bp.c343 …lve_pending_file_break_ex(const char *file, uint32_t filelen, zend_string *cur, HashTable *fileht)… in phpdbg_resolve_pending_file_break_ex() argument
345cur), 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()
353cur) < 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 Dphpdbg_btree.c127 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()
/php-src/ext/xsl/
H A Dxsltprocessor.c126 static void xsl_add_ns_to_map(xmlHashTablePtr table, xsltStylesheetPtr sheet, const xmlNode *cur, c… in xsl_add_ns_to_map() argument
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()
160 cur = php_dom_next_in_tree_order(cur, (const xmlNode *) doc); in xsl_build_ns_map()
/php-src/main/
H A Dfastcgi.c769 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 …]

Completed in 92 milliseconds

123