/PHP-8.0/Zend/tests/weakrefs/ |
H A D | weakmap_basic_map_behavior.phpt | 6 $map = new WeakMap; 7 var_dump(count($map)); 14 $map[$obj] = $obj2; 16 var_dump($map); 21 $map[$obj] = 42; 22 var_dump($map); 28 var_dump($map); 34 var_dump($map); 40 var_dump($map); 56 $map[$obj2]++; [all …]
|
H A D | weakmap_weakness.phpt | 6 $map = new WeakMap; 10 var_dump($map); 13 $map[$obj] = 2; 14 var_dump($map); 17 var_dump($map); 30 var_dump($map); 34 $map[$obj] = 3; 35 unset($map); 54 unset($map); 58 $map[$map] = $map; [all …]
|
H A D | weakmap_object_reference.phpt | 6 $map = new WeakMap; 10 $map[$obj] = 1; 11 var_dump(count($map)); 12 var_dump($map); 13 var_dump(isset($map[$obj])); 14 var_dump(!empty($map[$obj])); 15 var_dump($map[$obj]);
|
H A D | weakmap_error_conditions.phpt | 6 $map = new WeakMap; 8 $map[1] = 2; 13 var_dump($map[1]); 18 isset($map[1]); 23 unset($map[1]); 29 $map[] = 1; 34 $map[][1] = 1; 44 var_dump($map->prop); 46 unset($map->prop); 49 $map->prop = 1; [all …]
|
H A D | weakmap_iteration.phpt | 6 $map = new WeakMap; 9 foreach ($map as $key => $value) { 17 $map[$obj0] = 0; 18 $map[$obj1] = 1; 19 $map[$obj2] = 2; 20 foreach ($map as $key => $value) { 25 foreach ($map as $key => $value) { 31 foreach ($map as $key => &$value) { 34 var_dump($map);
|
H A D | weakmap_multiple_weakrefs.phpt | 9 $map = new WeakMap; 10 $map[$obj] = 1; 16 var_dump($ref->get(), $map, $map2, $map3); 18 var_dump($ref->get(), $map, $map2, $map3); 19 unset($ref, $map, $map2); 23 $map = new WeakMap; 24 $map[$obj] = 1; 29 unset($ref, $map, $map2, $map3);
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | bug40685.phpt | 7 $map = array(0, 0x10FFFF, 0, 0xFFFFFF); 8 var_dump(mb_decode_numericentity('&', $map, 'UTF-8')); 9 var_dump(mb_decode_numericentity('&&&', $map, 'UTF-8')); 10 var_dump(mb_decode_numericentity('&#', $map, 'UTF-8')); 11 var_dump(mb_decode_numericentity('&#x', $map, 'UTF-8')); 12 var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); 13 var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); 14 var_dump(mb_decode_numericentity('=', $map, 'UTF-8')); 15 var_dump(mb_decode_numericentity('=', $map, 'UTF-8'));
|
H A D | bug30549.phpt | 11 function test($enc, $map) { 14 foreach($map as $fromc => $toc) {
|
/PHP-8.0/ext/filter/ |
H A D | sanitizing_filters.c | 155 if ((*map)[str[i]]) { in filter_map_apply() 300 filter_map map; in php_filter_email() local 302 filter_map_init(&map); in php_filter_email() 304 filter_map_apply(value, &map); in php_filter_email() 314 filter_map map; in php_filter_url() local 316 filter_map_init(&map); in php_filter_url() 318 filter_map_apply(value, &map); in php_filter_url() 327 filter_map map; in php_filter_number_int() local 329 filter_map_init(&map); in php_filter_number_int() 340 filter_map map; in php_filter_number_float() local [all …]
|
/PHP-8.0/ext/gd/libgd/ |
H A D | gdcache.c | 159 cacheTest (void *map, void *key) in cacheTest() argument 161 return (((key_value_t *) map)->key == *(int *) key); in cacheTest() 167 key_value_t *map; in cacheFetch() local 169 map = (key_value_t *) gdMalloc (sizeof (key_value_t)); in cacheFetch() 170 map->key = *(int *) key; in cacheFetch() 171 map->value = 3; in cacheFetch() 174 return (void *) map; in cacheFetch() 178 cacheRelease (void *map) in cacheRelease() argument 180 gdFree ((char *) map); in cacheRelease()
|
/PHP-8.0/ext/spl/tests/ |
H A D | observer_010.phpt | 8 $map = new SplObjectStorage(); 9 $map[$a] = 'foo'; 10 var_dump($map[$b] ?? null); 11 var_dump($map[$a] ?? null);
|
/PHP-8.0/ext/standard/ |
H A D | pack.c | 91 *output++ = v[map[i]]; in php_pack() 532 map = big_endian_short_map; in PHP_FUNCTION() 534 map = little_endian_short_map; in PHP_FUNCTION() 559 map = big_endian_long_map; in PHP_FUNCTION() 561 map = little_endian_long_map; in PHP_FUNCTION() 579 map = big_endian_longlong_map; in PHP_FUNCTION() 690 cresult[map[i]] = *data++; in php_unpack() 1025 map = big_endian_short_map; in PHP_FUNCTION() 1027 map = little_endian_short_map; in PHP_FUNCTION() 1061 map = big_endian_long_map; in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 406 mlp->map = NULL; in add_mlist() 410 ml->map = idx == 0 ? map : NULL; in add_mlist() 562 efree(map); in apprentice_unmap() 590 if (ml->map) in mlist_free_one() 1421 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load() 1435 return map; in apprentice_load() 3079 map->p = CAST(void *, emalloc(map->len)); in apprentice_map() 3128 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map() 3136 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map() 3146 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map() [all …]
|
/PHP-8.0/ext/fileinfo/tests/ |
H A D | bug78987.phpt | 13 $map = array( 29 printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m");
|
/PHP-8.0/ext/soap/tests/ |
H A D | bug48557.phpt | 11 function test($map) { 12 var_dump($map, $map[1], $map[2]);die;
|
/PHP-8.0/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_sjis_mobile.h | 67 int mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n); 68 int mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n);
|
H A D | mbfilter_sjis_mobile.c | 252 mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_map_tbl() 257 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl() 258 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl() 267 mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_r_map_tbl() 272 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl() 273 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
|
/PHP-8.0/ext/opcache/Optimizer/ |
H A D | zend_call_graph.c | 250 zend_call_info **map, *call; in zend_build_call_map() local 256 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map() 259 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map() 261 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map() 265 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map() 269 return map; in zend_build_call_map()
|
H A D | compact_literals.c | 367 map[i] = l_null; in zend_optimizer_compact_literals() 378 map[i] = l_false; in zend_optimizer_compact_literals() 389 map[i] = l_true; in zend_optimizer_compact_literals() 396 map[i] = j; in zend_optimizer_compact_literals() 415 map[i] = j; in zend_optimizer_compact_literals() 432 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 434 map[i] = j; in zend_optimizer_compact_literals() 453 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 462 map[i] = j; in zend_optimizer_compact_literals() 495 map[i] = l_empty_arr; in zend_optimizer_compact_literals() [all …]
|
/PHP-8.0/ext/mbstring/ucgendat/ |
H A D | ucgendat.php | 479 function generateCaseMPH(string $name, array $map) { argument 481 list($gTable, $table) = generateMPH($map, $fast = false); 546 function tryGenerateMPH(array $map, int $gSize) { argument 547 $tableSize = count($map); 552 foreach ($map as $k => $v) { 624 function generateMPH(array $map, bool $fast) { argument 628 $m = (int) (count($map) / $lambda); 629 $tmpMph = tryGenerateMPH($map, $m); 637 $m = (int) (count($map) / 7.0); 639 $tmpMph = tryGenerateMPH($map, $m);
|
/PHP-8.0/ext/standard/html_tables/ |
H A D | html_table_gen.php | 182 $map = array(); variable 186 $map[] = array($matches[1], $matches[2]); 190 foreach ($map as $v) { $mappy[hexdec($v[0])] = hexdec($v[1]); } 325 $map = array(); variable 329 $map[] = array($matches[1], $matches[2], rtrim($matches[3])); 333 foreach ($map as $v) {
|
/PHP-8.0/ext/fileinfo/ |
H A D | libmagic.patch | 124 ml->map = idx == 0 ? map : NULL; 206 - if (map->p && map->p != MAP_FAILED) 207 - (void)munmap(map->p, map->len); 213 - free(map); 214 + efree(map); 228 if (ml->map) 706 - if (read(fd, map->p, map->len) != (ssize_t)map->len) { 714 + map->p = CAST(void *, emalloc(map->len)); 797 map->magic[0] = CAST(struct magic *, map->p) + 1; 800 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; [all …]
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_list.h | 46 void *map; member
|
/PHP-8.0/Zend/ |
H A D | zend_alloc.c | 1097 chunk->map[page_num] = 0; 1297 info = chunk->map[page_num]; 1397 info = chunk->map[page_num]; 1922 info = chunk->map[page_num]; 1926 info = chunk->map[page_num]; 1951 info = chunk->map[page_num]; 1955 info = chunk->map[page_num]; 1976 info = chunk->map[i]; 1987 chunk->map[i] = ZEND_MM_SRUN(bin_num); 2049 if (p->map[i] & ZEND_MM_IS_SRUN) { [all …]
|
/PHP-8.0/ext/pcre/pcre2lib/ |
H A D | pcre2_printint.c | 648 uint8_t *map; in pcre2_printint() local 675 map = (uint8_t *)ccode; in pcre2_printint() 679 for (i = 0; i < 32; i++) inverted_map[i] = 255 ^ map[i]; in pcre2_printint() 680 map = inverted_map; in pcre2_printint() 685 if ((map[i/8] & (1u << (i&7))) != 0) in pcre2_printint() 689 if ((map[j/8] & (1u << (j&7))) == 0) break; in pcre2_printint()
|