/PHP-8.1/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);
|
H A D | weakmap_dtor_exception.phpt | 5 $map = new WeakMap; 7 $map[$obj] = new class {
|
/PHP-8.1/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 | cp51932_encoding.phpt | 26 /* The table we are using tries to map as many Unicode codepoints into 42 /* We map the JIS X 0208 FULLWIDTH TILDE to U+FF5E (FULLWIDTH TILDE) 48 /* We map the JIS X 0208 PARALLEL TO symbol to U+2225 (PARALLEL TO), 72 unset($fromUnicode["\x00\xA9"]); // Don't map © to c 73 unset($fromUnicode["\x00\xAA"]); // Don't map feminine ordinal indicator 76 unset($fromUnicode["\x00\xAE"]); // Don't map ® to R 78 unset($fromUnicode["\x00\xB2"]); // Don't map ² to ordinary 2 79 unset($fromUnicode["\x00\xB3"]); // Don't map ³ to ordinary 3 80 unset($fromUnicode["\x00\xB5"]); // Don't map micro sign to Greek mu 82 unset($fromUnicode["\x00\xB8"]); // Don't map cedilla to fullwidth comma [all …]
|
H A D | bug30549.phpt | 11 function test($enc, $map) { 14 foreach($map as $fromc => $toc) {
|
/PHP-8.1/ext/ffi/tests/ |
H A D | weak_reference_004.phpt | 9 $map = new WeakMap(); 18 $map[$ffi] = 'ffi'; 19 $map[$cdata_value] = 'cdata_value'; 20 $map[$cdata_array] = 'cdata_array'; 21 $map[$cdata_free] = 'cdata_free'; 22 $map[$ctype] = 'ctype'; 24 var_dump(count($map) === 5); 32 var_dump(count($map) === 0);
|
/PHP-8.1/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.1/Zend/tests/enum/ |
H A D | weak-map.phpt | 10 $map = new WeakMap(); 11 $map[TestEnum::A] = 'a string'; 12 var_dump($map[TestEnum::A]); 13 var_dump($map[TestEnum::A]);
|
/PHP-8.1/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.1/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.1/ext/fileinfo/libmagic/ |
H A D | apprentice.c | 405 mlp->map = NULL; in add_mlist() 409 ml->map = idx == 0 ? map : NULL; in add_mlist() 562 efree(map); in apprentice_unmap() 590 if (ml->map) in mlist_free_one() 1424 &map->magic[j], &map->nmagic[j]) == -1) { in apprentice_load() 1438 return map; in apprentice_load() 3089 map->p = CAST(void *, emalloc(map->len)); in apprentice_map() 3138 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map() 3146 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; in apprentice_map() 3156 byteswap(map->magic[i], map->nmagic[i]); in apprentice_map() [all …]
|
/PHP-8.1/ext/fileinfo/tests/ |
H A D | bug78987.phpt | 13 $map = array( 29 printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m");
|
/PHP-8.1/ext/soap/tests/ |
H A D | bug48557.phpt | 11 function test($map) { 12 var_dump($map, $map[1], $map[2]);die;
|
/PHP-8.1/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_sjis_mobile.h | 63 int mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n); 64 int mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n);
|
H A D | mbfilter_sjis_mobile.c | 251 int mbfilter_conv_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_map_tbl() 254 if (map[i][0] <= c && c <= map[i][1]) { in mbfilter_conv_map_tbl() 255 *w = c - map[i][0] + map[i][2]; in mbfilter_conv_map_tbl() 262 int mbfilter_conv_r_map_tbl(int c, int *w, const unsigned short map[][3], int n) in mbfilter_conv_r_map_tbl() 266 if (map[i][2] <= c && c <= map[i][2] - map[i][0] + map[i][1]) { in mbfilter_conv_r_map_tbl() 267 *w = c + map[i][0] - map[i][2]; in mbfilter_conv_r_map_tbl()
|
/PHP-8.1/Zend/Optimizer/ |
H A D | zend_call_graph.c | 253 zend_call_info **map, *call; in zend_build_call_map() local 259 map = zend_arena_calloc(arena, sizeof(zend_call_info *), op_array->last); in zend_build_call_map() 262 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map() 264 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map() 268 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map() 272 return map; in zend_build_call_map()
|
H A D | compact_literals.c | 358 map[i] = l_null; in zend_optimizer_compact_literals() 369 map[i] = l_false; in zend_optimizer_compact_literals() 380 map[i] = l_true; in zend_optimizer_compact_literals() 387 map[i] = j; in zend_optimizer_compact_literals() 406 map[i] = j; in zend_optimizer_compact_literals() 423 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 425 map[i] = j; in zend_optimizer_compact_literals() 444 map[i] = Z_LVAL_P(pos); in zend_optimizer_compact_literals() 453 map[i] = j; in zend_optimizer_compact_literals() 486 map[i] = l_empty_arr; in zend_optimizer_compact_literals() [all …]
|
/PHP-8.1/ext/fileinfo/ |
H A D | libmagic.patch | 122 ml->map = idx == 0 ? map : NULL; 204 - if (map->p && map->p != MAP_FAILED) 205 - (void)munmap(map->p, map->len); 211 - free(map); 212 + efree(map); 226 if (ml->map) 704 - if (read(fd, map->p, map->len) != (ssize_t)map->len) { 712 + map->p = CAST(void *, emalloc(map->len)); 795 map->magic[0] = CAST(struct magic *, map->p) + 1; 798 map->magic[i + 1] = map->magic[i] + map->nmagic[i]; [all …]
|
/PHP-8.1/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.1/ext/standard/ |
H A D | pack.c | 91 static void php_pack(zval *val, size_t size, int *map, char *output) in php_pack() argument 100 *output++ = v[map[i]]; in php_pack() 543 int *map = machine_endian_short_map; in PHP_FUNCTION() local 546 map = big_endian_short_map; in PHP_FUNCTION() 548 map = little_endian_short_map; in PHP_FUNCTION() 570 int *map = machine_endian_long_map; in PHP_FUNCTION() local 573 map = big_endian_long_map; in PHP_FUNCTION() 575 map = little_endian_long_map; in PHP_FUNCTION() 590 int *map = machine_endian_longlong_map; in PHP_FUNCTION() local 593 map = big_endian_longlong_map; in PHP_FUNCTION() [all …]
|