/php-src/ext/standard/ |
H A D | strnatcmp.c | 90 unsigned char ca, cb; in strnatcmp_ex() local 103 ca = *ap; cb = *bp; in strnatcmp_ex() 111 cb = *++bp; in strnatcmp_ex() 121 while (isspace((int)(unsigned char)cb)) { in strnatcmp_ex() 122 cb = *++bp; in strnatcmp_ex() 127 fractional = (ca == '0' || cb == '0'); in strnatcmp_ex() 145 ca = *ap; cb = *bp; in strnatcmp_ex() 151 cb = toupper((int)(unsigned char)cb); in strnatcmp_ex() 154 if (ca < cb) in strnatcmp_ex() 156 else if (ca > cb) in strnatcmp_ex() [all …]
|
H A D | assert.c | 26 char *cb; 62 if (ASSERTG(cb)) { in PHP_INI_MH() 63 pefree(ASSERTG(cb), 1); in PHP_INI_MH() 71 ASSERTG(cb)[ZSTR_LEN(new_value)] = '\0'; in PHP_INI_MH() local 73 ASSERTG(cb) = NULL; in PHP_INI_MH() 133 assert_globals_p->cb = NULL; in PHP_INI_END() 149 if (ASSERTG(cb)) { in PHP_MSHUTDOWN_FUNCTION() 150 pefree(ASSERTG(cb), 1); in PHP_MSHUTDOWN_FUNCTION() 151 ASSERTG(cb) = NULL; in PHP_MSHUTDOWN_FUNCTION() 321 } else if (ASSERTG(cb)) { in PHP_FUNCTION() [all …]
|
/php-src/ext/standard/tests/array/ |
H A D | bug74345.phpt | 13 $cb = [new Test, $name]; 14 array_map($cb, []); 15 array_map($cb, [], []); 17 array_map($cb, null); 22 array_map($cb, null, null); 26 array_filter([], $cb); 27 array_reduce([], $cb); 30 array_walk($array, $cb); 31 array_walk_recursive($array, $cb); 32 usort($array, $cb); [all …]
|
H A D | bug22463.phpt | 7 return (is_array($ary) ? array_reduce($ary, 'cb', 0) : 1); 10 function cb($v, $elem) {
|
/php-src/ext/dom/lexbor/lexbor/css/ |
H A D | property.h | 425 lexbor_serialize_cb_f cb, void *ctx); 433 lexbor_serialize_cb_f cb, void *ctx); 449 lexbor_serialize_cb_f cb, void *ctx); 499 lexbor_serialize_cb_f cb, void *ctx); 523 lexbor_serialize_cb_f cb, void *ctx); 535 lexbor_serialize_cb_f cb, void *ctx); 847 lexbor_serialize_cb_f cb, void *ctx); 883 lexbor_serialize_cb_f cb, void *ctx); 895 lexbor_serialize_cb_f cb, void *ctx); 919 lexbor_serialize_cb_f cb, void *ctx); [all …]
|
H A D | value.h | 220 lexbor_serialize_cb_f cb, void *ctx); 224 lexbor_serialize_cb_f cb, void *ctx); 228 lexbor_serialize_cb_f cb, void *ctx); 232 lexbor_serialize_cb_f cb, void *ctx); 236 lexbor_serialize_cb_f cb, void *ctx); 252 lexbor_serialize_cb_f cb, void *ctx); 260 lexbor_serialize_cb_f cb, void *ctx); 264 lexbor_serialize_cb_f cb, void *ctx); 276 lexbor_serialize_cb_f cb, void *ctx); 280 lexbor_serialize_cb_f cb, void *ctx); [all …]
|
H A D | at_rule.h | 56 lexbor_serialize_cb_f cb, void *ctx); 62 lexbor_serialize_cb_f cb, void *ctx); 80 lxb_css_at_rule__undef_serialize(const void *style, lexbor_serialize_cb_f cb, 83 lxb_css_at_rule__undef_serialize_name(const void *at, lexbor_serialize_cb_f cb, 99 lxb_css_at_rule__custom_serialize(const void *style, lexbor_serialize_cb_f cb, 102 lxb_css_at_rule__custom_serialize_name(const void *at, lexbor_serialize_cb_f cb, 114 lxb_css_at_rule_media_serialize(const void *style, lexbor_serialize_cb_f cb, 126 lxb_css_at_rule_namespace_serialize(const void *style, lexbor_serialize_cb_f cb,
|
H A D | css.h | 41 lxb_css_serialize_char_handler(const void *style, lxb_css_style_serialize_f cb, 45 lexbor_mraw_t *mraw, lxb_css_style_serialize_f cb);
|
H A D | log.c | 190 lxb_css_log_serialize(lxb_css_log_t *log, lexbor_serialize_cb_f cb, void *ctx, in lxb_css_log_serialize() argument 207 lexbor_serialize_write(cb, indent, indent_length, ctx, status); in lxb_css_log_serialize() 210 status = lxb_css_log_message_serialize(msg, cb, ctx); in lxb_css_log_serialize() 221 lexbor_serialize_write(cb, "\n", 1, ctx, status); in lxb_css_log_serialize() 277 lexbor_serialize_cb_f cb, void *ctx) in lxb_css_log_message_serialize() argument 285 lexbor_serialize_write(cb, type_name, length, ctx, status); in lxb_css_log_message_serialize() 286 lexbor_serialize_write(cb, ". ", 2, ctx, status); in lxb_css_log_message_serialize() 287 lexbor_serialize_write(cb, msg->text.data, msg->text.length, ctx, status); in lxb_css_log_message_serialize()
|
/php-src/ext/dom/lexbor/lexbor/css/syntax/ |
H A D | syntax.c | 27 const lxb_css_syntax_cb_list_rules_t *cb, in lxb_css_syntax_parse_list_rules() argument 43 rule = lxb_css_syntax_parser_list_rules_push(parser, NULL, NULL, cb, in lxb_css_syntax_parse_list_rules() 146 lexbor_serialize_cb_f cb, void *ctx) in lxb_css_syntax_ident_serialize() argument 162 lexbor_serialize_write(cb, data, p - data, ctx, status); in lxb_css_syntax_ident_serialize() 164 lexbor_serialize_write(cb, hex_map[ch], 2, ctx, status); in lxb_css_syntax_ident_serialize() 169 lexbor_serialize_write(cb, lxb_str_ws.data, in lxb_css_syntax_ident_serialize() 180 lexbor_serialize_write(cb, data, p - data, ctx, status); in lxb_css_syntax_ident_serialize() 188 lexbor_serialize_cb_f cb, void *ctx) in lxb_css_syntax_string_serialize() argument 234 lexbor_serialize_write(cb, lxb_str_ws.data, in lxb_css_syntax_string_serialize() 254 lexbor_serialize_write(cb, data, p - data, ctx, status); in lxb_css_syntax_string_serialize() [all …]
|
H A D | token.c | 299 return cb(buf, 1, ctx); in lxb_css_syntax_token_serialize() 307 return cb(buf, len, ctx); in lxb_css_syntax_token_serialize() 315 status = cb(buf, len, ctx); in lxb_css_syntax_token_serialize() 320 return cb((lxb_char_t *) "%", 1, ctx); in lxb_css_syntax_token_serialize() 329 return cb((lxb_char_t *) ":", 1, ctx); in lxb_css_syntax_token_serialize() 332 return cb((lxb_char_t *) ";", 1, ctx); in lxb_css_syntax_token_serialize() 335 return cb((lxb_char_t *) ",", 1, ctx); in lxb_css_syntax_token_serialize() 338 return cb((lxb_char_t *) "[", 1, ctx); in lxb_css_syntax_token_serialize() 341 return cb((lxb_char_t *) "]", 1, ctx); in lxb_css_syntax_token_serialize() 344 return cb((lxb_char_t *) "(", 1, ctx); in lxb_css_syntax_token_serialize() [all …]
|
H A D | syntax.h | 83 lxb_css_syntax_cb_base_t cb; member 90 lxb_css_syntax_cb_base_t cb; member 104 const lxb_css_syntax_cb_base_t *cb; member 139 const lxb_css_syntax_cb_list_rules_t *cb, 152 lexbor_serialize_cb_f cb, void *ctx); 156 lexbor_serialize_cb_f cb, void *ctx); 160 lexbor_serialize_cb_f cb, void *ctx);
|
/php-src/ext/dom/lexbor/lexbor/css/selectors/ |
H A D | selector.c | 23 lexbor_serialize_cb_f cb, void *ctx); 47 lexbor_serialize_cb_f cb, void *ctx); 50 lexbor_serialize_cb_f cb, void *ctx); 53 lexbor_serialize_cb_f cb, void *ctx); 344 lexbor_serialize_cb_f cb, void *ctx) in lxb_css_selector_serialize() argument 371 status = lxb_css_selector_serialize(selector, cb, ctx); in lxb_css_selector_serialize_chain() 393 status = lxb_css_selector_serialize(selector, cb, ctx); in lxb_css_selector_serialize_chain() 651 status = lxb_css_selector_serialize_any(selector, cb, ctx); in lxb_css_selector_serialize_attribute() 659 return cb((lxb_char_t *) "]", 1, ctx); in lxb_css_selector_serialize_attribute() 728 return cb((lxb_char_t *) "]", 1, ctx); in lxb_css_selector_serialize_attribute() [all …]
|
/php-src/ext/pcre/pcre2lib/ |
H A D | pcre2_compile.c | 4896 if (cb->names_found >= cb->named_group_list_size) in parse_regex() 4911 cb->cx->memctl.free((void *)cb->named_groups, in parse_regex() 4919 cb->named_groups[cb->names_found].name = name; in parse_regex() 4921 cb->named_groups[cb->names_found].number = cb->bracount; in parse_regex() 5025 cb->erroroffset = (PCRE2_SIZE)(ptr - cb->start_pattern); in parse_regex() 5576 cb->erroroffset = name - cb->start_pattern; in find_dupname_details() 5753 if (code > cb->start_workspace + cb->workspace_size - in compile_branch() 8201 if (cb->max_lookbehind == 0) cb->max_lookbehind = 1; in compile_branch() 8404 cb->cx->stack_guard(cb->parens_depth, cb->cx->stack_guard_data)) in compile_regex() 10439 cb.nllen = 1; in pcre2_compile() [all …]
|
H A D | pcre2_pattern_info.c | 272 pcre2_callout_enumerate_block cb; in pcre2_callout_enumerate() local 293 cb.version = 0; in pcre2_callout_enumerate() 401 cb.pattern_position = GET(cc, 1); in pcre2_callout_enumerate() 404 cb.callout_string_offset = 0; in pcre2_callout_enumerate() 405 cb.callout_string_length = 0; in pcre2_callout_enumerate() 406 cb.callout_string = NULL; in pcre2_callout_enumerate() 407 rc = callback(&cb, callout_data); in pcre2_callout_enumerate() 413 cb.pattern_position = GET(cc, 1); in pcre2_callout_enumerate() 415 cb.callout_number = 0; in pcre2_callout_enumerate() 417 cb.callout_string_length = in pcre2_callout_enumerate() [all …]
|
H A D | pcre2_auto_possess.c | 629 if (cb->had_recurse) return FALSE; in compare_opcodes() 719 code = get_chr_property_list(code, utf, ucp, cb->fcc, list); in compare_opcodes() 788 set2 = (uint8_t *)(cb->cbits + cbit_digit); in compare_opcodes() 795 set2 = (uint8_t *)(cb->cbits + cbit_space); in compare_opcodes() 802 set2 = (uint8_t *)(cb->cbits + cbit_word); in compare_opcodes() 1138 PRIV(auto_possessify)(PCRE2_UCHAR *code, const compile_block *cb) in PRIV() 1145 BOOL utf = (cb->external_options & PCRE2_UTF) != 0; in PRIV() 1146 BOOL ucp = (cb->external_options & PCRE2_UCP) != 0; in PRIV() 1158 get_chr_property_list(code, utf, ucp, cb->fcc, list) : NULL; in PRIV() 1161 if (end != NULL && compare_opcodes(end, utf, ucp, cb, list, end, in PRIV() [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/ |
H A D | serialize.h | 40 lxb_html_serialize_cb_f cb, void *ctx); 47 lxb_html_serialize_cb_f cb, void *ctx); 54 lxb_html_serialize_cb_f cb, void *ctx); 62 lxb_html_serialize_cb_f cb, void *ctx); 72 lxb_html_serialize_cb_f cb, void *ctx); 82 lxb_html_serialize_cb_f cb, void *ctx);
|
/php-src/Zend/tests/closures/ |
H A D | closure_038.phpt | 33 $cb = $ca->bindTo($b, $b); 35 var_dump($cb()); 40 $cb = $ca->bindTo($b, 'B'); 42 var_dump($cb()); 45 $cb = $ca->bindTo($b, NULL); 46 var_dump($cb());
|
H A D | closure_039.phpt | 33 $cb = $ca->bindTo($b, $b); 35 var_dump($cb()); 40 $cb = $ca->bindTo($b, 'B'); 42 var_dump($cb()); 45 $cb = $ca->bindTo($b, NULL); 46 var_dump($cb());
|
/php-src/Zend/tests/ |
H A D | bug69167.phpt | 9 $cb = 'l'; 10 call_user_func($cb, 'hi'); 12 $cb2 = &$cb;
|
H A D | bug46409.phpt | 13 $cb = new Callback(); 14 echo $cb(),"\n"; 16 $b = array_map($cb, $a);
|
/php-src/ext/readline/ |
H A D | readline_cli.c | 728 #define GET_SHELL_CB(cb) \ argument 732 (cb) = NULL; \ 748 #define GET_SHELL_CB(cb) \ argument 750 (cb) = NULL; \ 764 cli_shell_callbacks_t *cb; in PHP_MINIT_FUNCTION() local 769 GET_SHELL_CB(cb); in PHP_MINIT_FUNCTION() 770 if (cb) { in PHP_MINIT_FUNCTION() 781 cli_shell_callbacks_t *cb; in PHP_MSHUTDOWN_FUNCTION() local 785 GET_SHELL_CB(cb); in PHP_MSHUTDOWN_FUNCTION() 786 if (cb) { in PHP_MSHUTDOWN_FUNCTION() [all …]
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_010.phpt | 9 $cb = function(int &$bar) { 14 $cb($foo->bar);
|
/php-src/ext/dom/lexbor/lexbor/selectors/ |
H A D | selectors.h | 88 lxb_selectors_cb_f cb; member 184 lxb_selectors_cb_f cb, void *ctx); 215 lxb_selectors_cb_f cb, void *ctx); 224 lxb_selectors_cb_f cb, void *ctx));
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | serialize.h | 14 #define lexbor_serialize_write(cb, data, length, ctx, status) \ argument 16 (status) = (cb)((lxb_char_t *) (data), (length), (ctx)); \
|